[3954] in java-interest
Re: menu item callbacks
daemon@ATHENA.MIT.EDU (R.Volkmann)
Tue Dec 5 14:35:40 1995
Date: Tue, 5 Dec 1995 09:34:25 -0600
From: "R.Volkmann" <m224873@svxtrm14.mdc.com>
To: amarks@insect.sd.monash.edu.au
Cc: java-interest@java.Eng.Sun.COM
In-Reply-To: <9512051043.AA12123@insect.sd.monash.edu.au> (amarks@insect.sd.monash.edu.au)
Reply-To: "R. Mark Volkmann"<m224873@svmstr01.mdc.com>
Just to make sure I have this straight ...
If I want to handle events such as menu item picks in an application then
I must:
1) create a class which inherits from Frame such as MyFrame
2) override the handleEvent or action member function there to handle
menu item picks or other events
3) create a class which inherits Applet such as MyApp
(I got this idea from an example. Is the purpose of this to allow my
application to run as both an application and an applet?)
4) create an instance of MyFrame in MyApp
I can't handle events by overriding handleEvent or action in MyApp.
Correct?
|------------------------------------------------------------|
| R. Mark Volkmann - Principal Specialist Programmer/Analyst |
| McDonnell Douglas Aerospace, St. Louis, Missouri, USA |
| email m224873@svmstr01.mdc.com, voice (314)232-0498 |
|------------------------------------------------------------|
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com