How can I change the Value of a JTextfield
inside an ActionLIstener
?
cmdAnzeigen.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
/* Cannot refer to a non-final variable TextOutput inside an
inner class defined in a different method*/
TextOutput.setText("Hello");
}
});