java gui set size window code example
Example: set size of a jframe
import java.util.*;
public static void main(string args){
JFrame frame = new JFrame();
frame.setSize(200,200); // Where you set size
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}