Tag: 实质

物质和MacOS MenuBar

我有一个扩展JFrame的Class MainWindow。 在MainWindow我有一个JMenuBar。 我想在OSX上显示MenuBar(Apple符号旁边)。 这只适用,当我没有设置物质皮肤。 是否可以使用Substance Skin并使用MacOS MenuBar? 我的代码: //Set Menu for MacOS System.setProperty(“apple.laf.useScreenMenuBar”, “true”); System.setProperty(“com.apple.mrj.application.apple.menu.about.name”, name); try { SwingUtilities.invokeAndWait(new Runnable() { public void run() { SubstanceSkin skin = new GraphiteGlassSkin(); SubstanceLookAndFeel.setSkin(skin); //WORKS WHEN I COMMENT THIS (WITHOUT SUBSTANCE SKIN) JFrame.setDefaultLookAndFeelDecorated(false); MainWindow mainWindow = new MainWindow(name); mainWindow.setVisible(true); } }); } catch (InterruptedException e) { // […]

更改Substance LookAndFeel的文本颜色

我正在尝试改变Substance Look and Feel的文本颜色(事实上我正在使用SubstanceGraphiteGlassLookAndFeel。我不知道该怎么做…

我可以在同一个Swing应用程序中使用两种不同的外观吗?

我正在使用Flamingo色带和Substance Office 2007的外观和感觉。 当然,现在每个控件都具有这种外观和感觉,甚至是对话框上的控件。 我想要的是类似于Office 2007,其中的色带具有Office 2007外观,但其他控件保持其原生的Vista / XP外观。 是否可以为某些控件分配不同的外观和感觉? 也许使用某种链接或代理外观和感觉?