Angelmath / xswingx

Automatically exported from code.google.com/p/xswingx
0 stars 2 forks source link

Nimbus/GTK LnF: Search field looks disabled as soon as you type #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. start your webstart demo at
http://stud4.tuwien.ac.at/~e0304333/xswingx2/launch.jnlp
2. choose lnf GTK and/or Nimbus
3. go to search field tab
4. start typing into the search field 

What is the expected output? What do you see instead?
with GTP and Nimbus LnF the search field's background turns gray (like
disabled) as soon as you type in the first character. Instead it should
still look like an editable field.

What version of the product are you using? On what operating system?
Latest as of today

Please provide any additional information below.

PS: good piece of sw!

Original issue reported on code.google.com by hans.na...@gmx.de on 10 Nov 2008 at 9:22

GoogleCodeExporter commented 8 years ago
Solution is:

in org.jdesktop.xswingx.plaf.PromptTextUI

Change the update() method to:

    /**
     * Calls super.{@link #update(Graphics, JComponent)}, which in turn calls
     * the paint method of this object.
     */
    @Override public void update(Graphics g, JComponent c) {
        if (shouldPaintPrompt( (JTextComponent)c )) {
            super.update(g, c);
        } else {
            delegate.update(g, c);
        }
    }

Btw. Thanks for this library!

Original comment by rickblom...@gmail.com on 15 Sep 2009 at 5:13

GoogleCodeExporter commented 8 years ago
why isn't this fixed already?

Original comment by i30817@gmail.com on 29 Nov 2009 at 7:13

GoogleCodeExporter commented 8 years ago
It seems that the project is now unmaintained

Original comment by thraw...@gmail.com on 7 Dec 2009 at 5:17