I'm trying to make a tiny application : click into a button and JFrame will resize
The result is : width 500 height 920 :confused: .Code:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
setSize(500,[COLOR="DarkRed"]1000[/COLOR] ); /// apply for Frame
System.out.println("width" + getWidth());
System.out.println("height " + getHeight());
I cannot understand why i setHeight 1000 but result is 920 . Anybody can help me ???