Java Code Examples for com.alee.laf.WebLookAndFeel#fireWindowDisplayed()
The following examples show how to use
com.alee.laf.WebLookAndFeel#fireWindowDisplayed() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RootPanePainter.java From weblaf with GNU General Public License v3.0 | 5 votes |
/** * Installs {@link VisibilityBehavior} that informs {@link WebLookAndFeel} about {@link Window} visibility changes. */ protected void installVisibilityListener () { windowVisibilityBehavior = new VisibilityBehavior<C> ( component ) { @Override protected void displayed ( @NotNull final C component ) { final Window window = getWindow (); if ( window != null ) { WebLookAndFeel.fireWindowDisplayed ( window ); } } @Override protected void hidden ( @NotNull final C component ) { final Window window = getWindow (); if ( window != null ) { WebLookAndFeel.fireWindowHidden ( window ); } } }; windowVisibilityBehavior.install (); }