Apopei Andrei Ionut Apopei Andrei Ionut - 7 months ago 39
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


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.