setTextColor is undefined for JButton. To set the JButton text color, you can use setForeground . button.setForeground(Color.RED);.
確定! 回上一頁