Class MacOSXPopupLocationFix
java.lang.Object
org.jdesktop.swingx.autocomplete.workarounds.MacOSXPopupLocationFix
Fix a problem where the JComboBox's popup obscures its editor in the Mac OS X
Aqua look and feel.
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
Reposition the popup immediately before it is shown.private static final class
Figure out the dimensions of our screen. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JComboBox
the components being fixedprivate final MacOSXPopupLocationFix.Listener
the listener provides callbacks as necessaryprivate final JPopupMenu
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MacOSXPopupLocationFix
(JComboBox comboBox) Private constructor so users use the more action-orientedinstall(javax.swing.JComboBox)
method. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
fixPopupLocation
(JComponent popupComponent) Do the adjustment on the specified popupComponent immediately before it is displayed.static MacOSXPopupLocationFix
Install the fix for the specified combo box.void
Uninstall the fix.
-
Field Details
-
comboBox
the components being fixed -
popupMenu
-
listener
the listener provides callbacks as necessary
-
-
Constructor Details
-
MacOSXPopupLocationFix
Private constructor so users use the more action-orientedinstall(javax.swing.JComboBox)
method.
-
-
Method Details
-
install
Install the fix for the specified combo box. -
uninstall
public void uninstall()Uninstall the fix. Usually this is unnecessary since letting the combo box go out of scope is sufficient. -
fixPopupLocation
Do the adjustment on the specified popupComponent immediately before it is displayed.
-