hello friends,
I'm making a simple game gui. it got 26 buttons for all 26 letters and a label. these are added to a panel which is added to the frame. now for clicking any button i want to change the label.
Now in the actionPerformed method how can i get the letter user clicked and change the label?
Again for all buttons i used like
i.e." buttonA.addActionListener(new LabelListener()); "
to add the actionlistener.
so there is only one actionperformed method for all the buttons.
I'm not posting the code because i think it's scattered and u wouldn't need it.
please help.
I've worked hard to come to this point and now i'm stuck.:confused:
