You have the actionPerformed:
publicvoid actionPerformed(ActionEvent e)
{
con.add(tryagain);
con.add(correct);
}
So add your 'linking' code there:
myTextField.setText("whatever you want"); //change text when button is clicked
Reputation Points: 113
Solved Threads: 19
Postaholic
Offline 2,108 posts
since Jun 2004