How do I set the width of a frame in Java(swing)?
Printable View
How do I set the width of a frame in Java(swing)?
You can use the set the size of a JFrame by setting the size property. Im pretty sure that the first arguement is width and the second is height. :)
Code:JFrame jf = new JFrame();
jf.setSize(200,300);