< prev index next >
test/java/awt/TrayIcon/MouseMovedTest/MouseMovedTest.java
Print this page
@@ -37,10 +37,20 @@
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 >