Re: JFormatterTextField problem



hilz wrote:

I have a JFormattedTextField and a JTextField in the same dialog.
When i set the "enabled" property of both of them to false, both are disabled, but the JTextField is greyed out while the JFormattedTextField remains white.
I am using the windows look and feel.
Does anyone know why this happens? and how can i make the JFormattedTextField grayed out when disabled?
thanks

There are a couple of bugs in the Sun Windows L&f in older Java versions. WinLAF and the JGoodies Windows L&f address different of these issues.

Consider using the Sun Windows L&f in Java 6,
the WinLAF, or the JGoodies Windows L&f, see
https://mustang.dev.java.net/
https://winlaf.dev.java.net/
https://looks.dev.java.net/

- Karsten
.



Relevant Pages

  • Problem mit Document in JFormattedTextField
    ... ein JTextField dem ich ein eigenes Document-Objekt ... im ein eigenes Document-Objekt unterschiebe, welches dann die Eingaben ... JFormattedTextField erweiter ja seinerseits JTextField und laut ...
    (de.comp.lang.java)
  • Re: JFormatterTextField problem
    ... but the JTextField is greyed out while the JFormattedTextField ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Again taking new Java programming contracts. ...
    (comp.lang.java.gui)
  • Re: JTable InputVerifier
    ... >> workaround? ... I can use this method successfully on a JTextField or ... > I've never used a JFormattedTextField, but I've heard they're trouble. ...
    (comp.lang.java.programmer)
  • Re: JTable InputVerifier
    ... I can use this method successfully on a JTextField or ... I've never used a JFormattedTextField, but I've heard they're trouble. ...
    (comp.lang.java.programmer)
  • Re: Formatted text field
    ... > how is it possible to enable only numbers input in a jFormattedTextField? ... you can have only numbers also in JTextField. ... Use Document which accepts only digits. ... http://reader.imagero.com the best java image reader. ...
    (comp.lang.java.programmer)