码迷,mamicode.com
首页 > 其他好文 > 详细

substance新版及问题

时间:2016-01-16 12:04:31      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:

新版地址:https://github.com/Insubstantial,目前是7.3版

http://stackoverflow.com/questions/3657538/substance-ui-undecorated-jdialog-jframe

I have noticed that while using the Substance UI for Java that when I set a new JFrame or JDialog to undecorated it is not honored.

e.g.

frame.setUndecorated(true);
frame.setVisible(true);

When run under Substance shows a decorated frame.

When run under system default L&F shows an undecorated frame.

Anyone have ideas for working around this? I have been unable to find anything on this at the Substance website/java.net forums or already existing in SO.

This is a very old question, however for anyone who finds this post:

The problem with using,

JFrame.setDefaultLookAndFeelDecorated(false);

to fix the undecorated issue, is that it causes ALL of your dialogs to use the default look and feel when they are DECORATED. If you‘d just like one dialog to be undecorated without affecting all the other dialogs, call this on your dialog after setting it undecorated:

getRootPane().setWindowDecorationStyle(JRootPane.NONE);

substance新版及问题

标签:

原文地址:http://www.cnblogs.com/cuizhf/p/5135198.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!