public class CLASSNAME{
public static void main(String[] args) {
JFrame frame = new JFrame("TITLE");
frame.setSize(300,300);
frame.setVisible(true);
}
}
So, the code above keeps the window open and only closes it when you x out of it yet there is no loop to keep the program from closing. Can someone explain this to me? And do i need to make a loop?