< prev index next >
test/javax/swing/plaf/basic/6866751/bug6866751.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 6866751
! @summary J2SE_Swing_Reg: the caret disappears when moving to the end of the line.
! @author Semyon Sadetsky
*/
import javax.swing.*;
import java.awt.*;
public class bug6866751 {
private static JFrame frame;
--- 19,36 ----
* 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 6866751
! * @summary J2SE_Swing_Reg: the caret disappears when moving to the end of the line.
! * @author Semyon Sadetsky
*/
+
import javax.swing.*;
import java.awt.*;
public class bug6866751 {
private static JFrame frame;
*** 75,85 ****
System.out.println("ok");
} finally {
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
! frame.dispose();
}
});
}
}
--- 78,88 ----
System.out.println("ok");
} finally {
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
! if (frame != null) { frame.dispose(); }
}
});
}
}
< prev index next >