I got it working... i added
public JLabel label1;
then modified the JLabel Method and actionPerformed to include label1.
Type: Posts; User: Neacel
I got it working... i added
public JLabel label1;
then modified the JLabel Method and actionPerformed to include label1.
public JButton button(){
JButton button = new JButton();
button.setPreferredSize(new Dimension(20,20));
button.addActionListener(new ActionListener(){
...
Could you give me some example code on how to do this?
I am trying to update the text on the label through the use of the actionListener, however no matter what i do i can't get it to work.
Here is the relevent code
public JPanel panel(){
...
Hello everyone, i only been doing java for a couple weeks... so i will be grateful for any assistance you provide me. :)