< prev index next >

test/jdk/java/awt/TrayIcon/DblClickActionEventTest/DblClickActionEventTest.java

Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke

*** 35,45 **** import java.awt.*; import java.awt.event.*; import java.awt.image.*; ! import jdk.testlibrary.OSInfo; import test.java.awt.regtesthelpers.Sysout; public class DblClickActionEventTest extends Applet { boolean traySupported; --- 35,45 ---- import java.awt.*; import java.awt.event.*; import java.awt.image.*; ! import jdk.test.lib.Platform; import test.java.awt.regtesthelpers.Sysout; public class DblClickActionEventTest extends Applet { boolean traySupported;
*** 48,58 **** String[] instructions; traySupported = SystemTray.isSupported(); if (traySupported) { String clickInstruction; ! if (OSInfo.getOSType().equals(OSInfo.OSType.MACOSX)) { clickInstruction = "right"; } else { clickInstruction = "left"; } instructions = new String[]{ --- 48,58 ---- String[] instructions; traySupported = SystemTray.isSupported(); if (traySupported) { String clickInstruction; ! if (Platform.isOSX()) { clickInstruction = "right"; } else { clickInstruction = "left"; } instructions = new String[]{
< prev index next >