Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > implements ActionListener & ItemListener?
  Last Thread   Next Thread
Share
Author
Thread    Post A Reply
Turbonium
Supreme tranceaddict



Registered: Jan 2003
Location: Toronto
implements ActionListener & ItemListener?

For a Java applet...

What's the syntax to implement both? The following obviously does not work, but it's just to give you an idea of what I'm talking about...

code:
import java.applet.*; import java.awt.*; import java.awt.event.*; public class proggyName extends Applet implements ItemListener implements ActionListener { }

Old Post Apr-30-2004 03:09  Canada
Click Here to See the Profile for Turbonium Click here to Send Turbonium a Private Message Add Turbonium to your buddy list Report this Post Reply w/Quote Edit/Delete Message
3xx3r7
Speedy J addict



Registered: Jan 2004
Location: with your mom

Aren't you supposed to implement only one thing? Since implements is associated with usage of methods specified in the interface that is implemented.

Looks like you're trying to code GUI.


___________________
Blip, blip, blip...

Old Post Apr-30-2004 03:16  Ukraine
Click Here to See the Profile for 3xx3r7 Click here to Send 3xx3r7 a Private Message Visit 3xx3r7's homepage! Add 3xx3r7 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Turbonium
Supreme tranceaddict



Registered: Jan 2003
Location: Toronto

The stupid assignment required the use of both checkboxes and buttons, in an applet. So I dunno how else to listen for both checkbox entries, as well as button clicks.

This is by far the most useless Java book ever. I can't believe my school is using this crap. I swear, if you look at this thing, you will laugh.

Old Post Apr-30-2004 03:18  Canada
Click Here to See the Profile for Turbonium Click here to Send Turbonium a Private Message Add Turbonium to your buddy list Report this Post Reply w/Quote Edit/Delete Message
DigiNut
You kids get off my lawn!



Registered: Dec 2002
Location: Toronto, Self-proclaimed Centre of the Universe

code:
implements ItemListener, ActionListener


___________________
My party schedule:
2009-02-21 - DJ Attention @ I'm So Popular
2009-06-18 - DJ Annoying @ People Need To Know Where I'll Be
2012-11-32 - DJ Insufferable ɸ Or At Least the Stalkers I Complain About
2048-06-66 - Spastic & Whocares Although I'm Actually Flattered
9999-45-81 - Tweaker Gimp I Probably Won't Even Go To This But I Have To Make Sure I Fill Up All The Available Space Here

Old Post Apr-30-2004 03:24  Canada
Click Here to See the Profile for DigiNut Click here to Send DigiNut a Private Message Add DigiNut to your buddy list Report this Post Reply w/Quote Edit/Delete Message
mezzir
BEES?



Registered: Nov 2002
Location: assachusetts

quote:
Originally posted by DigiNut
code:
implements ItemListener, ActionListener

beat me to it


___________________

http://www.youtube.com/mezzir

Old Post Apr-30-2004 03:27  Niue
Click Here to See the Profile for mezzir Click here to Send mezzir a Private Message Add mezzir to your buddy list Report this Post Reply w/Quote Edit/Delete Message
starglider
Supreme tranceaddict



Registered: Aug 2001
Location: Montreal, Canada

Ah... glad I don't have to do that shit anymore.

Old Post Apr-30-2004 05:38  Canada
Click Here to See the Profile for starglider Click here to Send starglider a Private Message Add starglider to your buddy list Report this Post Reply w/Quote Edit/Delete Message
3xx3r7
Speedy J addict



Registered: Jan 2004
Location: with your mom

I am just learning Java. Finished an intro course this semester.


___________________
Blip, blip, blip...

Old Post Apr-30-2004 15:38  Ukraine
Click Here to See the Profile for 3xx3r7 Click here to Send 3xx3r7 a Private Message Visit 3xx3r7's homepage! Add 3xx3r7 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
digitally404
tranceaddict



Registered: Apr 2004
Location: London, Canada

Yea, diginut gave the right answer... I liked java, and i was having the exact same problem trying to figure out how to implement more than one thing in a program, once i got that figured, the rpg game fell through quite nicely

Old Post May-02-2004 00:26  Poland
Click Here to See the Profile for digitally404 Click here to Send digitally404 a Private Message Add digitally404 to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > implements ActionListener & ItemListener?
Post New Thread    Post A Reply

 
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackprog house 2005 [2006] [0]

Click here to listen to the sample!Pause playbackKuffdam & Plant - "Summer Dream" (Paul van Dyk Remix) [2004]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 11:03.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2025, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!