set size of a jframe

Solutions on MaxInterview for set size of a jframe by the best coders in the world

showing results for - "set size of a jframe"
Juliana
10 Jan 2017
1import java.util.*;
2public static void main(string args){
3JFrame frame = new JFrame();
4frame.setSize(200,200); // Where you set size
5frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
6frame.setVisible(true);
7}