📜  如何让 JFrame 全屏 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:14.699000             🧑  作者: Mango

代码示例4
If you have extended the class to JFrame then -
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
IF not then - 
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);