import javax.swing.JFrame;
public class Main{
public static void main(String[] args){
JFrame frame = new JFrame("A Desktop Application");
frame.setSize(400, 300);
frame.setLocation(200, 100);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
No comments:
Post a Comment