Answers for "setJFrame size"

5

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);
}
Posted by: Guest on June-13-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language