Java Code Examples for sun.awt.SunToolkit#setSystemGenerated()
The following examples show how to use
sun.awt.SunToolkit#setSystemGenerated() .
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: XTextAreaPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
private static MouseEvent newMouseEvent( Component source, Point point, MouseEvent template ) { MouseEvent e = template; MouseEvent nme = new MouseEvent( source, e.getID(), e.getWhen(), e.getModifiersEx() | e.getModifiers(), point.x, point.y, e.getXOnScreen(), e.getYOnScreen(), e.getClickCount(), e.isPopupTrigger(), e.getButton() ); // Because these MouseEvents are dispatched directly to // their target, we need to mark them as being // system-generated here SunToolkit.setSystemGenerated(nme); return nme; }
Example 2
Source File: XTextAreaPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private static MouseEvent newMouseEvent( Component source, Point point, MouseEvent template ) { MouseEvent e = template; MouseEvent nme = new MouseEvent( source, e.getID(), e.getWhen(), e.getModifiersEx() | e.getModifiers(), point.x, point.y, e.getXOnScreen(), e.getYOnScreen(), e.getClickCount(), e.isPopupTrigger(), e.getButton() ); // Because these MouseEvents are dispatched directly to // their target, we need to mark them as being // system-generated here SunToolkit.setSystemGenerated(nme); return nme; }
Example 3
Source File: SequencedEvent.java From Bytecoder with Apache License 2.0 | 6 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); if (fxAppThreadIsDispatchThread) { fxCheckSequenceThread = new Thread() { @Override public void run() { while(!isFirstOrDisposed()) { try { Thread.sleep(100); } catch (InterruptedException e) { break; } } } }; } synchronized (SequencedEvent.class) { list.add(this); } }
Example 4
Source File: XTextAreaPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private static MouseEvent newMouseEvent( Component source, Point point, MouseEvent template ) { MouseEvent e = template; MouseEvent nme = new MouseEvent( source, e.getID(), e.getWhen(), e.getModifiersEx() | e.getModifiers(), point.x, point.y, e.getXOnScreen(), e.getYOnScreen(), e.getClickCount(), e.isPopupTrigger(), e.getButton() ); // Because these MouseEvents are dispatched directly to // their target, we need to mark them as being // system-generated here SunToolkit.setSystemGenerated(nme); return nme; }
Example 5
Source File: XTextAreaPeer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private static MouseEvent newMouseEvent( Component source, Point point, MouseEvent template ) { MouseEvent e = template; MouseEvent nme = new MouseEvent( source, e.getID(), e.getWhen(), e.getModifiersEx() | e.getModifiers(), point.x, point.y, e.getXOnScreen(), e.getYOnScreen(), e.getClickCount(), e.isPopupTrigger(), e.getButton() ); // Because these MouseEvents are dispatched directly to // their target, we need to mark them as being // system-generated here SunToolkit.setSystemGenerated(nme); return nme; }
Example 6
Source File: XTextAreaPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private static MouseEvent newMouseEvent( Component source, Point point, MouseEvent template ) { MouseEvent e = template; MouseEvent nme = new MouseEvent( source, e.getID(), e.getWhen(), e.getModifiersEx() | e.getModifiers(), point.x, point.y, e.getXOnScreen(), e.getYOnScreen(), e.getClickCount(), e.isPopupTrigger(), e.getButton() ); // Because these MouseEvents are dispatched directly to // their target, we need to mark them as being // system-generated here SunToolkit.setSystemGenerated(nme); return nme; }
Example 7
Source File: SequencedEvent.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); synchronized (SequencedEvent.class) { list.add(this); } }
Example 8
Source File: SequencedEvent.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); synchronized (SequencedEvent.class) { list.add(this); } }
Example 9
Source File: SequencedEvent.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); synchronized (SequencedEvent.class) { list.add(this); } }
Example 10
Source File: XWindowPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void handleWindowFocusIn_Dispatch() { if (EventQueue.isDispatchThread()) { XKeyboardFocusManagerPeer.getInstance().setCurrentFocusedWindow((Window) target); WindowEvent we = new WindowEvent((Window)target, WindowEvent.WINDOW_GAINED_FOCUS); SunToolkit.setSystemGenerated(we); target.dispatchEvent(we); } }
Example 11
Source File: SequencedEvent.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); synchronized (SequencedEvent.class) { list.add(this); } }
Example 12
Source File: XWindowPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void handleWindowFocusIn_Dispatch() { if (EventQueue.isDispatchThread()) { XKeyboardFocusManagerPeer.getInstance().setCurrentFocusedWindow((Window) target); WindowEvent we = new WindowEvent((Window)target, WindowEvent.WINDOW_GAINED_FOCUS); SunToolkit.setSystemGenerated(we); target.dispatchEvent(we); } }
Example 13
Source File: SequencedEvent.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); synchronized (SequencedEvent.class) { list.add(this); } }
Example 14
Source File: SequencedEvent.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); synchronized (SequencedEvent.class) { list.add(this); } }
Example 15
Source File: XWindowPeer.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void handleWindowFocusIn_Dispatch() { if (EventQueue.isDispatchThread()) { XKeyboardFocusManagerPeer.getInstance().setCurrentFocusedWindow((Window) target); WindowEvent we = new WindowEvent((Window)target, WindowEvent.WINDOW_GAINED_FOCUS); SunToolkit.setSystemGenerated(we); target.dispatchEvent(we); } }
Example 16
Source File: SequencedEvent.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); synchronized (SequencedEvent.class) { list.add(this); } }
Example 17
Source File: XWindowPeer.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void handleWindowFocusIn_Dispatch() { if (EventQueue.isDispatchThread()) { XKeyboardFocusManagerPeer.getInstance().setCurrentFocusedWindow((Window) target); WindowEvent we = new WindowEvent((Window)target, WindowEvent.WINDOW_GAINED_FOCUS); SunToolkit.setSystemGenerated(we); target.dispatchEvent(we); } }
Example 18
Source File: SequencedEvent.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); synchronized (SequencedEvent.class) { list.add(this); } }
Example 19
Source File: XWindowPeer.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void handleWindowFocusIn_Dispatch() { if (EventQueue.isDispatchThread()) { XKeyboardFocusManagerPeer.getInstance().setCurrentFocusedWindow((Window) target); WindowEvent we = new WindowEvent((Window)target, WindowEvent.WINDOW_GAINED_FOCUS); SunToolkit.setSystemGenerated(we); target.dispatchEvent(we); } }
Example 20
Source File: SequencedEvent.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Constructs a new SequencedEvent which will dispatch the specified * nested event. * * @param nested the AWTEvent which this SequencedEvent's dispatch() * method will dispatch */ public SequencedEvent(AWTEvent nested) { super(nested.getSource(), ID); this.nested = nested; // All AWTEvents that are wrapped in SequencedEvents are (at // least currently) implicitly generated by the system SunToolkit.setSystemGenerated(nested); synchronized (SequencedEvent.class) { list.add(this); } }