Java 如何在安装jTattoo主题后使框架不装饰

Java 如何在安装jTattoo主题后使框架不装饰,java,look-and-feel,uimanager,Java,Look And Feel,Uimanager,在使用JTatto LookAndFeel后 try { UIManager.setLookAndFeel(new McWinLookAndFeel()); new Main(new UserModel()).setVisible(true); } catch (UnsupportedLookAndFeelException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVE

在使用JTatto LookAndFeel后

try {
       UIManager.setLookAndFeel(new McWinLookAndFeel());
       new Main(new UserModel()).setVisible(true);

     } catch (UnsupportedLookAndFeelException ex) {
       Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null,ex); 
     }
}
我还是想把所有的框架都装饰一下。我试着用

this.undecorated(true);
在我的框架的构造函数中,但这些代码将无法工作,因为外观覆盖了这些代码,有人能告诉我如何超越这些吗??
任何帮助都会非常有用。

我也遇到了同样的问题,因为这个API没有足够的文档化,所以可能很难找到解决方法

问题的出现是因为主题覆盖了标准应用程序栏,所以主题也必须隐藏它。我花了几分钟查看类代码,发现了这个解决方案。如果您想进入全屏模式,在设置了外观之后,首先必须删除边框。因此,在设置之前:

this.undecorated(true);
删除边界:

DecorationHelper.decorateWindows(false);
在离开全屏之前,你必须重新装饰窗户:

DecorationHelper.decorateWindows(true);

这对我有用

DecorationHelper.decorateWindows(false);此项。未装饰的设置(正确);此.setAlwaysOnTop(true);DecorationHelper.decorateWindows(true);this.setExtendedState(this.MAXIMIZED_两者)@Alin你是说像这样吗??不幸的是,它对我不起作用。我犯了什么错误???@Azela没有。你必须调用方法
DecorationHelper.decorateWindows(false)。示例:
DecorationHelper.decorateWindows(false);新的FullScreenClass()