从 JTabbedPane 中删除蓝色 [英] remove blue color from 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屋!