This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Menu is getting hidden behind the applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Menu is getting hidden behind the applet" Watch "Menu is getting hidden behind the applet" New topic
Author

Menu is getting hidden behind the applet

Ashish Nandan
Greenhorn

Joined: Jun 03, 2009
Posts: 22
Hi Guys,

I have a problem. I have an applet loaded over a container panel. Now when i try to access menu, it gets hidden behind applet.
Any idea how to solve this problem?

Regards,
Ashish Nandan
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2354
    
    8
Sounds like you are using AWT components in a Swing application. Don't, this will cause problems. Swing components start with "J"
Ashish Nandan
Greenhorn

Joined: Jun 03, 2009
Posts: 22
I am using JApplet. But still menu is getting hidden behind the JApplet.
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19691
    
  10

Ashish Nandan wrote:I am using JApplet.


And the other components? Like this "container panel" you mentioned? Don't use any AWT components.
Ashish Nandan
Greenhorn

Joined: Jun 03, 2009
Posts: 22
emulator is a JApplet, and container panel is a JPanel....
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10733
    
    9

Why are you putting the applet in a panel? It should be treated as a top level container.
Try adding the applet directly to your page.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Menu is getting hidden behind the applet
 
It's not a secret anymore!