public final class MacOSXPopupLocationFix extends Object
Installing this fix will resolve the problem for Aqua without having side-effects for other look-and-feels. It also supports dynamically changed look and feels.
Modifier and Type | Class and Description |
---|---|
private class |
MacOSXPopupLocationFix.Listener
Reposition the popup immediately before it is shown.
|
private static class |
MacOSXPopupLocationFix.ScreenGeometry
Figure out the dimensions of our screen.
|
Modifier and Type | Field and Description |
---|---|
private JComboBox |
comboBox
the components being fixed
|
private MacOSXPopupLocationFix.Listener |
listener
the listener provides callbacks as necessary
|
private JPopupMenu |
popupMenu |
Modifier | Constructor and Description |
---|---|
private |
MacOSXPopupLocationFix(JComboBox comboBox)
Private constructor so users use the more action-oriented
install(javax.swing.JComboBox) method. |
Modifier and Type | Method and Description |
---|---|
private void |
fixPopupLocation(JComponent popupComponent)
Do the adjustment on the specified popupComponent immediately before
it is displayed.
|
static MacOSXPopupLocationFix |
install(JComboBox comboBox)
Install the fix for the specified combo box.
|
void |
uninstall()
Uninstall the fix.
|
private final JPopupMenu popupMenu
private final MacOSXPopupLocationFix.Listener listener
private MacOSXPopupLocationFix(JComboBox comboBox)
install(javax.swing.JComboBox)
method.public static MacOSXPopupLocationFix install(JComboBox comboBox)
public void uninstall()
private void fixPopupLocation(JComponent popupComponent)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses