import javax.swing.*;
public class Main {
public static void main(String[] args) {
//Creates a new window with the title as the parameter
JFrame window = new JFrame("Title");
//Makes the window visible because by default, it isn't
window.setVisible(true);
//Terminates the whole application when the window is closed.
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Nothing happens. You must exit another way
// window.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
// Only hides the window, but still uses resources for it
// window.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
// Closes the window and un-allocates space for window. This is default. Program will still run.
// window.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
//Sets the location of the window
window.setLocation(500, 500);
//Sets Size of window
window.setSize(1000, 1000);
//Set both at the same time
//window.setBounds(500,500,1000,1000);
//episode 1 done lil boi
}
}