< prev index next >
test/javax/swing/JTabbedPane/7170310/bug7170310.java
Print this page
rev 17561 : 8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests.
Summary: Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows.
@@ -35,17 +35,19 @@
import javax.swing.plaf.metal.MetalLookAndFeel;
/**
* @test
+ * @key headful
* @bug 7170310
* @author Alexey Ivanov
* @summary Selected tab should be scrolled into view.
* @library ../../../../lib/testlibrary/
* @build ExtendedRobot
* @run main bug7170310
*/
+
public class bug7170310 {
private static final int TABS_NUMBER = 3;
private static volatile JTabbedPane tabbedPane;
private static volatile int count = 1;
@@ -73,11 +75,11 @@
throw exception;
} else {
System.out.printf("Test passed");
}
} finally {
- frame.dispose();
+ if (frame != null) { frame.dispose(); }
}
}
private static void createAndShowUI() {
frame = new JFrame("bug7170310");
< prev index next >