Action Listeners in Java
I have a class that uses Japplet. The form has 2 input fields and a
button. It also has a TextPanel to display the information entered by the
user. The problem that I am having is displaying that info entered on the
text area using an Action Listener. I dont know what i am missing.
public class CreatePanel extends JPanel
{
JTextField accountID = new JTextField();
JTextField amount = new JTextField();
button1 = new JButton("Create an Account");
add(textPanel);
}
} //end of actionPerformed method
} //end of ButtonListener class
} //end of CreatePanel class
No comments:
Post a Comment