• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

setting foreground of a disabled text field

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I am trying to set the foreground of a disabled text field to a different color. I tried using :
However, that did not work. I am using a custom class that I have created for all of my text fields that extends JTextField, with an inner class extending PlainDocument. Is this part of my problem? If so, why, and what do I need to do?
I changed the UIManager default for disabled foreground on a custom Combo Box that I created, which extends JComboBox.
What is different about these two components?
Thanks for any help!
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep, it's something to do with your extended classes... this works on default JTextFields. (At least in JDK 1.4.1)
 
reply
    Bookmark Topic Watch Topic
  • New Topic