/* Generated by Together */

package org.mbari.swing;

import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextField;

public class TestPanel extends Panel {
    /** Creates new form CustomPanel */
    public TestPanel() {
        initGUI();
    }

    /** This method is called from within the constructor to initialize the form. */
    private void initGUI() {
        setLayout(new java.awt.FlowLayout());
        add(jButton1);
        add(jTextField1);
        jButton1.setText("jButton1");
        jTextField1.setText("jTextField1");
        jTextField1.setSize(new java.awt.Dimension(150, 20));
        jTextField1.setPreferredSize(new java.awt.Dimension(150, 20));
        jButton1.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent e) { jButton1ActionPerformed(e); }
            });
    }

    public void jButton1ActionPerformed(ActionEvent e) {
		jTextField1.setText("HelloWorld");
    }

    public static void main(String[] args) {
		TestPanel tp = new TestPanel();
        JFrame f = new JFrame();
        f.getContentPane().add(tp);
        f.show();
    
    }

    private JButton jButton1 = new JButton();
    private JTextField jTextField1 = new JTextField();
}
