< prev index next >
test/jdk/javax/swing/JScrollBar/bug4202954/bug4202954.java
Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke
@@ -22,27 +22,28 @@
*/
/*
@test
@key headful
@bug 4202954
- @library ../../../../lib/testlibrary
+ @library /test/lib
@library ../../regtesthelpers
- @build Util jdk.testlibrary.OSInfo
+ @build Util jdk.test.lib.Platform
@author Michael C. Albers
@run main bug4202954
*/
import java.awt.*;
import java.awt.event.InputEvent;
import javax.swing.*;
-import jdk.testlibrary.OSInfo;
+
+import jdk.test.lib.Platform;
public class bug4202954 {
static JScrollPane buttonScrollPane;
static Robot robot;
public static void main(String[] args) throws Exception {
- if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) {
+ if (Platform.isOSX()) {
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
}
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
< prev index next >