nimbus

How to change the background color for JPanels with Nimbus Look and Feel?

萝らか妹 提交于 2019-11-26 18:34:03
问题 I want to use a different background color for all my JPanels in an application. How can I do that when using Nimbus Look and Feel? I follow Changing the Color Theme to change the color of components in Nimbus Look and Feel. It only works sometimes, randomly . If I set a PropertyChagneListener before I change the color, it is only notified once . Here is some test code: public class RedPanels extends JFrame { public RedPanels() { JPanel panel = new JPanel(); add(panel); setPreferredSize(new

setOpaque() in java

ぐ巨炮叔叔 提交于 2019-11-26 17:49:28
问题 Can anyone explain why Nimbius treats the setOpaque() differently than other java LaF's. Its breaking my code because components that are normally transparent no longer are. EDIT: The problem seems to only deal with JTextAreas (which is what I need) or similar components. EDIT EDIT: This is a screen of the actual application. When applying trashgod's solution, the background still does not show through. EDIT EDIT EDIT: I tried trashgod's suggestion to override the paint(). I toiled with this

Can't transparent and undecorated JFrame in JDK7 when enabling nimbus

*爱你&永不变心* 提交于 2019-11-26 15:28:00
Look at this picture : here is the code that transparent's the frame: GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); if (!gd.isWindowTranslucencySupported(TRANSLUCENT)) { System.err.println( "Translucency is not supported"); System.exit(0); } JFrame.setDefaultLookAndFeelDecorated(true); this works good but when trying to enable LookAndFeel by adding try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager

UIManager color at a JFileChooser

扶醉桌前 提交于 2019-11-26 11:34:10
问题 I\'m using Nimbus Look and Feel, with only 3 changes at its colors: UIManager.put(\"nimbusSelection\", new Color(164,164,164)); UIManager.put(\"nimbusSelectionBackground\", new Color(214,217,223)); UIManager.put(\"nimbusSelectedText\", Color.BLACK); My FileChooser looks like this: So selected file\'s name appears in white and looks bad, and it also happens for the file type selected at the combobox. I want to change it to Black, but nimbusSelectedText is already black and is not working. I

Apache Slider + Storm

白昼怎懂夜的黑 提交于 2019-11-26 11:27:53
#Apache Slider + Storm ##系统环境 安装如下组件,部署可用环境 JDK 1.7.0_79 Apache Zookeeper 3.4.* Apache Zookeeper Apache Hadoop 2.6.* Apache Hadoop Apache Storm 0.9.4 Apache Storm Download Apache storm配置相关目录及环境变量,不启动服务,主要作用为client连接slider storm需要使用 Apache Slider 0.91.0 Apache Slider Apache Slider部署参照 Apache Slider编译安装 ##Storm App Package编译 ###下载Strom可执行包 下载软件包apache-storm-0.9.4.tar.gz至/home/hadoop/Downloads目录下。 cd /home/hadoop/Downloads ls apache-storm-0.9.4.tar.gz ###编译环境 Slider编译环境参照 Apache Slider编译安装 Storm Slider编译命令 mvn clean package -DskipTests -Pstorm-app-package -Dpkg.version=0.9.4 -Dpkg.name=apache

Can't transparent and undecorated JFrame in JDK7 when enabling nimbus

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 04:26:26
问题 Look at this picture : here is the code that transparent\'s the frame: GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); if (!gd.isWindowTranslucencySupported(TRANSLUCENT)) { System.err.println( \"Translucency is not supported\"); System.exit(0); } JFrame.setDefaultLookAndFeelDecorated(true); this works good but when trying to enable LookAndFeel by adding try { for (javax.swing.UIManager.LookAndFeelInfo info : javax