简体   繁体   English

Java JButton更改翻转边框颜色

[英]java jbutton change rollover border color

When you roll over a Jbutton there's a greyish border that comes up to show the rollover effect. 当您将鼠标悬停在Jbutton上时,会出现一个灰色边框,以显示鼠标悬停效果。 Is there a simple way to change the color of that border say to red? 有没有简单的方法可以将边框的颜色更改为红色?

You would have to tweak the UI Default for what ever look and feel you are using. 您必须针对所使用的外观和感觉来调整UI Default。 This is simple, but finding the correct variable name to adjust normally is the time consuming part. 这很简单,但是找到正确的变量名进行正常调整是很费时的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM