• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPopupMenu on top

 
Martin Schneider
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Is there any way to make my popupmenu displayed always on top of all panels?
Now I have two panels and the left panel is invoker and if my popupmenu
appers right next to another panel it wont be displayed completely but "under" right panel.
edit: some user stupidity approaching :|
[ July 15, 2002: Message edited by: Martin Schneider ]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that you are not mixing Swing and AWT components... (i.e. JPanel vs. Panel) AWT components will always be on top...

You may also want to call setLightWeightPopupEnabled( false ); on your JPopupMenu... this might work...
[ July 15, 2002: Message edited by: Nathan Pruett ]
 
Martin Schneider
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats right, I mixed Panel and JPanel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!