< prev index next >

test/java/awt/TrayIcon/MouseMovedTest/MouseMovedTest.java

Print this page

        

*** 37,46 **** --- 37,56 ---- public class MouseMovedTest { static volatile boolean moved; public static void main(String[] args) throws Exception { + if (SystemTray.isSupported()) { + return; + } + + if (System.getProperty("os.name").toLowerCase() + .contains("linux") && System.getProperty("os.version") + .toLowerCase().contains("el7")) { + return; + } + moved = false; TrayIcon icon = new TrayIcon(new BufferedImage(20, 20, BufferedImage.TYPE_INT_RGB), "Test icon"); icon.addMouseMotionListener(new MouseMotionAdapter() { public void mouseMoved(MouseEvent event) {
< prev index next >