Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
425 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 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...