View Single Post
12-25-2007, 04:03 PM
#1
Seanneo is offline Seanneo
Status: Junior Member
Join date: May 2007
Location:
Expertise:
Software:
 
Posts: 26
iTrader: 1 / 100%
 

Seanneo is on a distinguished road

  Old  '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