| View previous topic :: View next topic |
| Author |
Message |
Thanasis (sch) Guest
|
Posted: Sat Nov 27, 2004 4:05 pm Post subject: MenuBar in AWT Java Applets |
|
|
Hi to everyone,
Sorry for my previous posting i forgot to fill subject line :)
i'd like to ask if it is possible to put a menubar in AWT Java Applets.
Thanks in advance
Thanasis
|
|
| Back to top |
|
 |
VK Guest
|
Posted: Sat Nov 27, 2004 4:18 pm Post subject: Re: MenuBar in AWT Java Applets |
|
|
Yes, but only in undocked applet.
"Thanasis (sch)" <thanasis_gr (AT) hotmail (DOT) com> wrote
| Quote: | Hi to everyone,
Sorry for my previous posting i forgot to fill subject line :)
i'd like to ask if it is possible to put a menubar in AWT Java Applets.
Thanks in advance
Thanasis
|
|
|
| Back to top |
|
 |
Thanasis (sch) Guest
|
Posted: Sat Nov 27, 2004 5:34 pm Post subject: Re: MenuBar in AWT Java Applets |
|
|
excuse me, what is undocked applet?
"VK" <schools_ring (AT) yahoo (DOT) com> wrote
| Quote: | Yes, but only in undocked applet.
"Thanasis (sch)" <thanasis_gr (AT) hotmail (DOT) com> wrote in message
news:41a8a07b$1 (AT) news (DOT) sch.gr...
Hi to everyone,
Sorry for my previous posting i forgot to fill subject line :)
i'd like to ask if it is possible to put a menubar in AWT Java Applets.
Thanks in advance
Thanasis
|
|
|
| Back to top |
|
 |
Luke Guest
|
Posted: Sat Nov 27, 2004 5:47 pm Post subject: Re: MenuBar in AWT Java Applets |
|
|
On Sat, 27 Nov 2004 18:05:56 +0200, "Thanasis (sch)"
<thanasis_gr (AT) hotmail (DOT) com> wrote:
Hello!
| Quote: | i'd like to ask if it is possible to put a menubar in AWT Java Applets.
|
If you create a new panel for that applet yes...
but if you want something like (my applet )
www.dentella.it/java/morph.htm
you need to use JApplet and Swing...
bye
|
|
| Back to top |
|
 |
Thanasis (sch) Guest
|
Posted: Sun Nov 28, 2004 1:29 am Post subject: Re: MenuBar in AWT Java Applets |
|
|
| Quote: | If you create a new panel for that applet yes...
Could you please explain what you mean above?Where to add this new panel? |
i know that you can add menus only in windows(frames) and not in panels
(like applets).
Am i right?
Thanks
thanasis
|
|
| Back to top |
|
 |
Luke Guest
|
Posted: Sun Nov 28, 2004 12:41 pm Post subject: Re: MenuBar in AWT Java Applets |
|
|
On Sun, 28 Nov 2004 03:29:48 +0200, "Thanasis (sch)"
<thanasis_gr (AT) hotmail (DOT) com> wrote:
Hello!
| Quote: | i know that you can add menus only in windows(frames) and not in panels
(like applets).
Am i right?
|
well AFAIK:
http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html
you can add a MenuBar (menus could be also popup...) only to frames.
If you use JMenuBar (swing) you can add to a JApplet as my applet:
www.dentella.it/java/morph.htm
bye
|
|
| Back to top |
|
 |
VK Guest
|
Posted: Mon Nov 29, 2004 9:36 am Post subject: Re: MenuBar in AWT Java Applets |
|
|
| Quote: | excuse me, what is undocked applet?
|
It's an applet "floating" in its own frame (window), as opposed to a docked
applet, which is "sitting" on the HTML page itself.
In the last case its frame property is brocken (has limited functionality)
in AWT. For example, that frame is good enough to use as a ref to spit out
dialogs from your applet, but it will not let you to add a menu to it.
|
|
| Back to top |
|
 |
|