• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JPopupMenu on top

 
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 ]
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • 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!