Java Code Examples for java.awt.peer.FramePeer#emulateActivation()
The following examples show how to use
java.awt.peer.FramePeer#emulateActivation() .
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: WEmbeddedFrame.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void synthesizeWindowActivation(final boolean activate) { final FramePeer peer = AWTAccessor.getComponentAccessor().getPeer(this); if (!activate || EventQueue.isDispatchThread()) { peer.emulateActivation(activate); } else { // To avoid focus concurrence b/w IE and EmbeddedFrame // activation is postponed by means of posting it to EDT. Runnable r = new Runnable() { public void run() { peer.emulateActivation(true); } }; WToolkit.postEvent(WToolkit.targetToAppContext(this), new InvocationEvent(this, r)); } }
Example 2
Source File: LightweightFrame.java From Bytecoder with Apache License 2.0 | 2 votes |
/** * Requests the peer to emulate activation or deactivation of the * frame. Peers should override this method if they are to implement * this functionality. * * @param activate if {@code true}, activates the frame; * otherwise, deactivates the frame */ public void emulateActivation(boolean activate) { final FramePeer peer = AWTAccessor.getComponentAccessor().getPeer(this); peer.emulateActivation(activate); }
Example 3
Source File: LightweightFrame.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Requests the peer to emulate activation or deactivation of the * frame. Peers should override this method if they are to implement * this functionality. * * @param activate if {@code true}, activates the frame; * otherwise, deactivates the frame */ public void emulateActivation(boolean activate) { final FramePeer peer = AWTAccessor.getComponentAccessor().getPeer(this); peer.emulateActivation(activate); }