| java.lang.Object com.ice.util.JFCUtilities
JFCUtilities | public class JFCUtilities (Code) | | This is a class that contains useful utility functions related
to the JFC (Swing).
|
computePopupLocation | public static Point computePopupLocation(MouseEvent event, Component rel, JPopupMenu popup)(Code) | | Swing 1.0 and 1.1 have a horrible bug with respect to popup menus.
Namely that they are not adjusted to be kept on-screen.
Here, we ensure that the popup is properly located.
This method will continue to work even after Sun fixes Swing...
However, because there is a case where we estimate the size of
the popup menu, one could make the argument to noop this method
when the bug is finally fixed.
|
|
|