Apopei Andrei Ionut Apopei Andrei Ionut - 1 year ago 68
Java Question

JFrame is very tiny when restore down is pressed

My question is why when I press to the restore down (on a Windows platform) the

is very tiny (see the bellow screenshot).

I use this code regarding State of the JFrame:


I need to use

enter image description here

Answer Source

Be sure that this.setExtendedState(JFrame.MAXIMIZED_BOTH) is executed AFTER setVisible(true). Also if you have a setResizable(false) call make sure it is executed AFTER the setExtendedState() one.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download