• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Jeff Wisard
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!