从 JTabbedPane 中删除蓝色 [英] remove blue color from JTabbedPane

查看:26
本文介绍了从 JTabbedPane 中删除蓝色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次使用 JTabbedPane.似乎默认外观在选项卡上和组件本身周围显示蓝色边框.如何禁用该效果?

It's the first time i'm using a JTabbedPane. It seems that default look and feel display an blue border border over the tab and around the component itself. How can i disable that effect?

推荐答案

嗯,一种简单快捷的方法可以通过将 LookAndFeel 设置为 SystemLookAndFeel(或任何其他外观)来消除这种效果":

Well, one easy and fast way you can remove this "effect" by setting the LookAndFeel to the SystemLookAndFeel (or any other lookandfeel):

    UIManager.setLookAndFeel(
        UIManager.getSystemLookAndFeelClassName());

请阅读这篇文章,以便您可以了解有关该主题的更多信息:http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

Please, read this article so you can understand more about that subject: http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

这篇关于从 JTabbedPane 中删除蓝色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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