Hi,
Im very new to Java and i've been putting together a pretty simple script. I have a JButton (start), which enables me to a range of processes when someone hits it:
start.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
//code for button goes here
}
}
};
This works fine. Although if I try and update a JLabel when the button is hit, using labelname.setText() it doesnt seem to do it? However all my other processes when the button is hit work perfectly and the setText() works if I use it outside the code above.
Any help greatly appretiated...let me know if you need more code snippets :)
-Ross