blob: 109cb7c5ef51928ae60abeb59847c9fe7ce889b4 [file] [log] [blame]
/*
@test
@bug 6599601
@summary tests that a simple GUI application runs without any
exceptions thrown
@author Artem.Ananiev area=awt.Toolkit
@run main SecurityTest2
*/
import java.awt.*;
public class SecurityTest2
{
public static void main(String[] args)
{
System.setSecurityManager(new SecurityManager());
try
{
Frame f = new Frame();
f.setVisible(true);
f.dispose();
}
catch (Exception z)
{
throw new RuntimeException("Test FAILED because of some Exception thrown", z);
}
}
}