在 JTabbedPanes 上设置选项卡标题颜色 [英] Setting tab title colors on JTabbedPanes

查看:38
本文介绍了在 JTabbedPanes 上设置选项卡标题颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 JTabbedPane 上,如何为选中和未选中状态设置选项卡标题的颜色?

On a JTabbedPane, how do you set the color of the tab titles for both the selected and unselected states?

推荐答案

看起来你想要的是 JTabbedPane 中的 setForegroundAtsetBackgroundAt 方法代码>.

It seems like what you want are the setForegroundAt and setBackgroundAt methods in JTabbedPane.

这篇关于在 JTabbedPanes 上设置选项卡标题颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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