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
ConstructorsModifierConstructorDescriptionprivateNonFlashingPopup(FlatPopupFactory.NonFlashingPopup reusePopup) (package private)NonFlashingPopup(Popup delegate, Component owner, Component contents) -
Method Summary
Modifier and TypeMethodDescription(package private) FlatPopupFactory.NonFlashingPopupfinal voidhide()(package private) voidhideImpl()(package private) voidfinal voidshow()(package private) voidshowImpl()
-
Field Details
-
Constructor Details
-
NonFlashingPopup
-
NonFlashingPopup
-
-
Method Details
-
cloneForReuse
FlatPopupFactory.NonFlashingPopup cloneForReuse() -
show
-
showImpl
void showImpl() -
hide
-
hideImpl
void hideImpl() -
reset
-