import javax.swing.*;
public class HelloWorld extends JFrame
{
HelloWorld(String title) {
super(title);
setSize(100, 100);
setLocation(10, 10);
setDefaultCloseOperation(EXIT_ON_CLOSE);
}
public static void main(String[] argv) {
HelloWorld hello = new HelloWorld("Hello swing!");
hello.show();
}
}