Skip to main content

PromptSupport (SwingX) and nimbus L&F

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2012-04-22

I have a problem with PromptSupport (SwingX) and nimbus L&F

I created a JTextField and add a prompt to it by following code.

JTextField textField = new JTextField(20);
PromptSupport.setPrompt("promptText", textField);
The problem is that the prompt show in the textField correctly, but when I type some text to the textField, its background changed to GRAY.

I run the swingx demo, it has the same problem. What I need to do to change the background of textField to WHITE when typing?

Many thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2012-01-24

I have this problem too when I set opaque of my JXTextField true.
When opaque is set false it behaves correctly but the field have
white border on the blue of Nimbus background.

Joined: 2006-06-08

Sounds like you've stumbled over a bug. Please file an issue with the issue tracker.