While loading the jFrame Form, by default it will load in
Preferred Size which can be defined manually by the Developer from Property Window. Since the size of the Screen differs in different Computer System, we cant define a static Screen Size. Instead we can set the Form to be Loaded in Maximize Mode.
This can be done easily by adding the setExtendedState to MAXIMIZED_BOTH below the initComponents();
- public MainForm() {
- initComponents();
- this.setExtendedState(MAXIMIZED_BOTH);
- }
No comments:
Post a Comment