aspose file tools*
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
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: 2183
    
    7
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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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: 10384
    
    8

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!]
 
 
subject: Menu is getting hidden behind the applet