简体   繁体   中英

When the window shows up its minimized

so I've tried out eclipse's windowbuilder which i downloaded from here: https://www.eclipse.org/windowbuilder/download.php

And i just tried to make a window with a button but when i launch it the window starts minimized... is the problem how i am starting it?:

public static void main(String[] args) {

    test4 test = new test4();
    test.setVisible(true);

}

test4 is a superclass of JFrame by the way.

Please answer! Thanks, Daniel

Before asking a question, please do some research.

Click here for automatic window maximizing.

Click here for the maximize and minimize button.

Also you aren't starting JFrame incorrectly.

Tips:

test.setResizable(boolean Value); //Maximize button

test.setSize(int x1, int x2); //Set size of JFrame

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM