< prev index next >
test/jdk/javax/swing/JTextArea/6940863/bug6940863.java
Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke
*** 26,41 ****
* @key headful
* @bug 6940863
* @summary Textarea within scrollpane shows vertical scrollbar
* @author Pavel Porvatov
* @requires (os.family == "windows")
! * @library ../../../../lib/testlibrary
! * @build jdk.testlibrary.OSInfo
* @run main bug6940863
*/
! import jdk.testlibrary.OSInfo;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
--- 26,41 ----
* @key headful
* @bug 6940863
* @summary Textarea within scrollpane shows vertical scrollbar
* @author Pavel Porvatov
* @requires (os.family == "windows")
! * @library /test/lib
! * @build jdk.test.lib.Platform
* @run main bug6940863
*/
! import jdk.test.lib.Platform;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
*** 57,67 ****
}
}
});
public static void main(String[] args) throws Exception {
! if (OSInfo.getOSType() != OSInfo.OSType.WINDOWS) {
System.out.println("The test is suitable only for Windows OS. Skipped");
return;
}
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
--- 57,67 ----
}
}
});
public static void main(String[] args) throws Exception {
! if (!Platform.isWindows()) {
System.out.println("The test is suitable only for Windows OS. Skipped");
return;
}
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
< prev index next >