更改RibbonApplicationMenuEntryPrimary(Flamingo)的背景颜色 [英] Change the background's color of RibbonApplicationMenuEntryPrimary (Flamingo)

查看:389
本文介绍了更改RibbonApplicationMenuEntryPrimary(Flamingo)的背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过任何方式更改RibbonApplicationMenuEntryPrimary(Flamingo)的背景颜色?

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

我查看了它的javadoc但无法找到方法。

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

推荐答案

1)请充分尊重我检查了API ;有很多导入,并从许多不同的方法扩展,从 java.swing.BasicButtonUI 开始,(这是我试图覆盖MetalButtonUI

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)也许改变built_in颜色主题会很容易,但我不喜欢不建议这样做。

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

3)我不是Flamingo或Netbeans 7用户,但可以使用以下教程:

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

物质外观和感觉分叉在 Insubstantial

Substance look and feel forked in Insubstantial

NetBeans平台功能区栏集成教程

到处都提到对物质L& F的支持

everywhere is mentioned support for Substance L&F

3)我使用Substance Look and Feel(我是物质用户)的内置主题,但是

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

4)之前下载Substance的源代码,有一个工作在 Check.java中的Java文件夹 test 中的 Swing Look and Feels 的示例

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,


  • 在那里,你可以从菜单中测试和选择内置的Substance主题,以及

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

测试(你必须先下载JAR文件)所有优秀的Java Swing外观和内部的一个JFrame。

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

这篇关于更改RibbonApplicationMenuEntryPrimary(Flamingo)的背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆