• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OK...another one that is way out there...

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have yet another unusual request. I want to develop a UI delegate class for a JMenu (or JMenuItem...or JPopupMenu...whichever is more appropriate) that will allow me to specify whether menu popups should drop down or drop up.
What I haven't been able to find in the source code for BasicMenuUI, BasicMenuItemUI, etc. is the code that determines if a popup menu should display itself above the selected menu (up) or display itself below the selected menu (down). Does anyone know what method in what UI delegate class contains this code? I want to override this method so that I can specify a default behavior (don't ask why...).
Thanks!
 
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic