こんにちは、通常の JButton の設定をオーバーライドしようとしています。背景色以外のすべての設定が変更されています。私は何を間違っていますか?
public class Button extends JButton {
int red = 0;
int green = 175;
int blue = 206;
Color kleur = new Color(red, green, blue);
public Button(String text) {
super(text);
this.setBackground(kleur);
this.setFont(new Font("Tahoma", Font.PLAIN, 22));
this.setBorder(null);
this.setFocusPainted(false);
this.setContentAreaFilled(false);
}
}