我正在制作游戏,当我禁用按钮时 setEnabled(false);,按钮变为灰色,与游戏中的其他颜色发生冲突.它们是一种在禁用按钮时更改按钮颜色的方法吗?
setEnabled(false);
java colors jbutton
colors ×1
java ×1
jbutton ×1