'Java' ActionListeners
Hey,
I have used an actionlistener for a button in a java applet. So when when i click the button it prints something out on the screen. This all works fine.
What i am curious about is how i can create 2 buttons using actionlisteners, so i can have 2 buttons that can print out different things on the screen.
I pritty sure i have to initialise the values as actionlisteners but how do i seperate their actions.
Hope this makes some sense. Dont really have code to show you im afraid. Have been searching on websites for a while to no avail. Hope someone can help.
Thx in advance,
Seanneo
|