AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MenuBar in AWT Java Applets

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Thanasis (sch)
Guest





PostPosted: Sat Nov 27, 2004 4:05 pm    Post subject: MenuBar in AWT Java Applets Reply with 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
VK
Guest





PostPosted: Sat Nov 27, 2004 4:18 pm    Post subject: Re: MenuBar in AWT Java Applets Reply with quote



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





PostPosted: Sat Nov 27, 2004 5:34 pm    Post subject: Re: MenuBar in AWT Java Applets Reply with quote



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





PostPosted: Sat Nov 27, 2004 5:47 pm    Post subject: Re: MenuBar in AWT Java Applets Reply with quote

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 Smile)
www.dentella.it/java/morph.htm
you need to use JApplet and Swing...
bye

Back to top
Thanasis (sch)
Guest





PostPosted: Sun Nov 28, 2004 1:29 am    Post subject: Re: MenuBar in AWT Java Applets Reply with quote


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





PostPosted: Sun Nov 28, 2004 12:41 pm    Post subject: Re: MenuBar in AWT Java Applets Reply with quote

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





PostPosted: Mon Nov 29, 2004 9:36 am    Post subject: Re: MenuBar in AWT Java Applets Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.