Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1224 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Other Programming Languages :

'Java' ActionListeners

Thread title: 'Java' ActionListeners
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
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

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed