简体   繁体   English

Java Swing中的自动调整大小

[英]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 目前,我正在使用Java(Window Builder)开发GUI,到目前为止,它看起来像这样: 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 问题是,当我最大化它时,所有图形对象都集中在左上角: 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. 抱歉,如果解决方案很简单,但我仍然是Java的新手。

You start by using Layout Managers . 首先使用“ 布局管理器”

I am still a newbie in Java. 我仍然是Java的新手。

And don't forget to click on the "trail (ie. table of contents)" link to find information about all the basic Swing features. 并且不要忘记单击“线索(即目录)”链接以找到有关所有基本Swing功能的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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