hi!
when i specify the size of a frame in netbeans, the size of it when i run the project is quite larger than what i specified..
any help?
Printable View
hi!
when i specify the size of a frame in netbeans, the size of it when i run the project is quite larger than what i specified..
any help?
Are you using Layout Manager. At design window, netbeans uses FreeDesign Layout manager, the said layout manager is not so friendly because it automatically resize and move objects/component. I suggest you use other layout manager.
Layout manager
Don't set the size. Set the preferredSize of the JFrame's contentPane if you must, and then call pack() on the JFrame before calling setVisible(true).
ok..got it...thanks