Skip to main content

java.awt.Choice ignores the color settings

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
mkant
Offline
Joined: 2010-02-03

Hello,
my problem:
- setting the colors for the choice element does not work
- foreground and border is black and background is white

I want to set the textcolor
I want to set the backgroundcolor
I want to set the bordercolor

Is there a workaround for that?
Thank you,
Mathias
Code:
this.configChoice = new Choice();

this.configChoice.setForeground(this.getForegroundColor());
this.configChoice.setBackground(this.getBackgroundColor());