./test/java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.java
Print this page
rev 3081 : Fixed regression test WindowWithWarningTest - enable AWT robot.
*** 89,104 ****
}//End init()
public void start ()
{
//Get things going. Request focus, set size, et cetera
- System.setSecurityManager( new SecurityManager() {
- // deny AWTPermission("showWindowWithoutWarningBanner")
- public boolean checkTopLevelWindow(Object window) {
- return false;
- }
- });
JFrame frame = new JFrame("Window Test");
frame.setBounds(50, 50, 200, 200);
frame.show();
JWindow window = new JWindow( frame );
--- 89,98 ----