简体   繁体   中英

Automatic resize in Java Swing

Currently I am developing a GUI using Java (Window Builder) and it looks like this so far: http://imageshack.com/a/img843/4818/75no.png

The problem is, when I maximize it, all the graphical objects stay focused in the left upper corner: http://imageshack.com/a/img713/5349/g7iz.png

I've already made some searches in order to discover how to automatically resize and/or change the locations of these graphical objects, but I could not find anything. Sorry if the solution for this is easy, but I am still a newbie in Java.

You start by using Layout Managers .

I am still a newbie in Java.

And don't forget to click on the "trail (ie. table of contents)" link to find information about all the basic Swing features.

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