Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
433 views
in Technique[技术] by (71.8m points)

java - Change the background's color of RibbonApplicationMenuEntryPrimary (Flamingo)

Is the any way to change the background's color of RibbonApplicationMenuEntryPrimary (Flamingo)?

I looked at its javadoc but couldn't find the way to do it.

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

1) Please, with due respect, I checked the APIs; there are lot of imports and extends from lots of different methods, starting with java.swing.BasicButtonUI, (here is my attemp to override MetalButtonUI).

2) Maybe it would be easy to change the built_in color theme, but I don't suggest doing that.

3) I'm not a Flamingo or Netbeans 7 user, but the following tutorials are available:

everywhere is mentioned support for Substance L&F

3) I'd use built-in themes from the Substance Look and Feel (I'm Substance user), but

4) Before downloading the source code for Substance, there is a working example for Swing Look and Feels in the Java Folder test in Check.java,

  • There you can test and choose built-in Substance themes from menus, as well as

  • Test (you have to download the JAR files first) all good Java Swing Look and Feels inside of one JFrame.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...