Package com.formdev.flatlaf.ui
Class FlatPopupFactory.NonFlashingPopup
java.lang.Object
javax.swing.Popup
com.formdev.flatlaf.ui.FlatPopupFactory.NonFlashingPopup
- Direct Known Subclasses:
FlatPopupFactory.DropShadowPopup
- Enclosing class:
FlatPopupFactory
Fixes popup background flashing effect when using dark theme on light platform theme,
where the light popup background is shown for a fraction of a second before
the dark popup content is shown.
This is fixed by setting popup background to content background.
Defers hiding of heavy weight popup window for an event cycle, which allows reusing popup window to avoid flicker when "moving" popup.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
NonFlashingPopup
(FlatPopupFactory.NonFlashingPopup reusePopup) (package private)
NonFlashingPopup
(Popup delegate, Component owner, Component contents) -
Method Summary
Modifier and TypeMethodDescription(package private) FlatPopupFactory.NonFlashingPopup
final void
hide()
(package private) void
hideImpl()
(package private) void
final void
show()
(package private) void
showImpl()
-
Field Details
-
Constructor Details
-
NonFlashingPopup
-
NonFlashingPopup
-
-
Method Details
-
cloneForReuse
FlatPopupFactory.NonFlashingPopup cloneForReuse() -
show
public final void show() -
showImpl
void showImpl() -
hide
public final void hide() -
hideImpl
void hideImpl() -
reset
-