Question: jframe how to set size?
Answer: height * 2 / 3; int width = screenSize. width * 2 / 3; // set the jframe height and width jframe. setPreferredSize(new Dimension(width, height)); As you can see, setting the initial JFrame size is very straightforward.