Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDateChooser text colour when disabled.

843805Feb 6 2007 — edited Feb 7 2007
Hi guys,

I am using a rather excellent module called JCalendar which gives me a dropdown calendar to allow the user to pick a certain date.

Everything's great, but I would like to disable the component, and still show the date within the field in black. I've tried setForeground and some others, but not having any luck.

According to the API ( http://www.toedter.com/en/jcalendar/api/ ), JDateChooser extends JPanel.

So can anybody guide me as to how I can get this darn component text to be black when disabled. I hope so!

Message was edited by:
richard_hawkes
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2007
Added on Feb 6 2007
5 comments
371 views