< prev index next >

test/javax/swing/plaf/nimbus/8041642/ScrollBarThumbVisibleTest.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.

*** 19,33 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! /* @test ! @bug 8134828 ! @summary Scrollbar thumb disappears with Nimbus L&F ! @author Semyon Sadetsky ! */ import javax.swing.*; import java.awt.*; public class ScrollBarThumbVisibleTest --- 19,35 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! /** ! * @test ! * @key headful ! * @bug 8134828 ! * @summary Scrollbar thumb disappears with Nimbus L&F ! * @author Semyon Sadetsky ! */ import javax.swing.*; import java.awt.*; public class ScrollBarThumbVisibleTest
*** 74,84 **** } } finally { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { ! frame.dispose(); } }); } System.out.println("ok"); } --- 76,86 ---- } } finally { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { ! if (frame != null) { frame.dispose(); } } }); } System.out.println("ok"); }
< prev index next >