以编程方式获取 JFrame 的装饰状态
Programmatically getting Decoration Status of JFrame
这看起来很简单 - 但我无法在这里或其他地方找到答案:
如何在运行时获取 JFrame 的装饰状态?我想像这样的东西应该存在:
this.myJFrame.getDecoration(); // returns true or false
或
this.myJFrame.isDecorated(); // returns true or false
我相信你要找的是JFrame#isUndecorated
, which goes with JFrame#setUndecorated
这看起来很简单 - 但我无法在这里或其他地方找到答案:
如何在运行时获取 JFrame 的装饰状态?我想像这样的东西应该存在:
this.myJFrame.getDecoration(); // returns true or false
或
this.myJFrame.isDecorated(); // returns true or false
我相信你要找的是JFrame#isUndecorated
, which goes with JFrame#setUndecorated