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

查看:51
本文介绍了更改 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 开始,(here是我试图覆盖 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) 也许更改内置颜色主题会很容易,但我不建议这样做.

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:

非实质性

NetBeans 平台功能区栏集成教程

到处都提到对 Substance L&F 的支持

everywhere is mentioned support for Substance L&F

3) 我会使用 Substance 外观和感觉中的内置主题(我是 Substance 用户),但是

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 的工作示例/code>,

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

在一个 JFrame 中测试(您必须先下载 JAR 文件)所有良好的 Java Swing 外观和感觉.

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天全站免登陆