[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Even more text field fixes
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: Even more text field fixes |
Date: |
Thu, 8 Sep 2005 15:50:35 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.4 |
My last fixes were not quite right. The color for disabled text components
is stored in the property disabledTextColor. This patch fixes this. I
think I got it right now. Sorry for so much noise for one little issue.
Also note that accidently this went in as two commits, sorry for this too.
2005-09-08 Roman Kennke <address@hidden>
* javax/swing/plaf/basic/BasicTextUI.java
(foreground): Removed this field. This is better stored
in the text component itself.
(inactiveForeground): Removed this field. This is stored
in the disabledTextColor property of the text component.
(installDefaults): Load foreground and disabledTextColor
properties from UIDefaults. Remove call to updateComponentColors.
(paintBackground): Set the correct background color here.
(updateComponentColor): Removed this method.
* javax/swing/text/PlainView.java
(disabledColor): New field. Stores the text color for disabled
text fields.
(drawUnselectedText): Respect the 'enabled' property of
the text component.
(paint): Fetch the disabled color of the text component.
/Roman
BasicTextUI.diff
Description: Text Data
PlainView.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Even more text field fixes,
Roman Kennke <=