posted 22 years ago
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!
Jeff Wisard<br />Sun Certified Java Programmer (Java 2)<br />Sun Certified Web Component Developer