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
{
}
Apr-30-2004 03:09
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...
Apr-30-2004 03:16
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.
Apr-30-2004 03:18
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
I am just learning Java. Finished an intro course this semester.
___________________
Blip, blip, blip...
Apr-30-2004 15:38
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