Article View: borland.public.jbuilder.java.swing
Article #9978Event handling question
From: John Norgaard
Date: Sat, 04 Dec 1999 00:00
Date: Sat, 04 Dec 1999 00:00
22 lines
1210 bytes
1210 bytes
I have a mainmenu with 4 buttons. The one is "Funktions". Jbuilder has
automatically added the following code
void toolBar_actionPerformed(ActionEvent e) {
String actionCommand = e.getActionCommand();
if (actionCommand.equals("Funktioner")) {
PanelFunk funktioner = new PanelFunk();
}
}
I added String actionCommande = etc...
I would like a submenu constructed in the class PanelFunk to appear without
the 4 buttons
in the mainmenu disappearing. - How can I do that? This is my first try with
event handling
(I'm new to java). I hope that someone has the answer.
Best regards
John
norgaard@12move.dk
Technical Details
Message-ID:
<S%Z14.34$o4.1241@news030.image.dk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,8887cc4e55798f12,start X-Google-Attributes: gid111d45,public From: "John Norgaard" <norgaard@12move.dk> Subject: Event handling question Date: 1999/12/04 Message-ID: <S%Z14.34$o4.1241@news030.image.dk> X-Deja-AN: 556448459 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 X-Complaints-To: news-abuse@wol.dk X-Trace: news030.image.dk 944270450 212.54.83.16 (Sat, 04 Dec 1999 01:20:50 WET) NNTP-Posting-Date: Sat, 04 Dec 1999 01:20:50 WET Newsgroups: borland.public.jbuilder.java.swing