Skip to main content

PromptSupport (SwingX) and nimbus L&F

1 reply [Last post]
phanhongphucit
Offline
Joined: 2012-04-22
Points: 0

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.
konecnyt
Offline
Joined: 2012-01-24
Points: 0

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.
Thanks

kschaefe
Offline
Joined: 2006-06-08
Points: 0

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

Karl