java.awt.peer.MouseInfoPeer Java Examples
The following examples show how to use
java.awt.peer.MouseInfoPeer.
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: PointerInfoCrashTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private static void testMouseInfoPeer() { Toolkit toolkit = Toolkit.getDefaultToolkit(); if (toolkit instanceof ComponentFactory) { ComponentFactory componentFactory = (ComponentFactory) toolkit; MouseInfoPeer mouseInfoPeer = componentFactory.getMouseInfoPeer(); mouseInfoPeer.fillPointWithCoords(new Point()); Window win = new Window(null); win.setSize(300, 300); win.setVisible(true); mouseInfoPeer.isWindowUnderMouse(win); win.dispose(); } }