Hi,
I have a clss with the following code -
public class ABC extends JFrame implements ActionListener
{
String myAge;
JButton jb;
JTextBox ageInput;
In the constructor,
//Create panels
public void actionPerformed(ActionEvent e)
{
String name = (Strng) ((JButton)e.getSource()).getText();
if(name.equals("submit"))
{
myAge = nameInput.getText();
processMyAge();
}
}
public void processMyAge()
{
System.out.println(myAge); ******NOT PRINTING THE INPUT GOT FROM THE FORM.********
//put it into a vector and return the vector to the calling class.
}
}
How do I correct the above?