Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何JFrame在打开时默认最大化表单()?我已经尝试过网络,但无法获得可以完成的适当代码。
JFrame
在使框架可见之前和调用 pack() 之后,调用它 -
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
假设“this”是 JFrame 的一个实例。