[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: AbstractDocument fixlet
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] Patch: AbstractDocument fixlet |
Date: |
Thu, 15 Dec 2005 16:21:06 -0500 |
Tiny fix in AbstractDocument.AbstractElement. The O'Reilly Swing book
correctly points out that AbstractElement implements the getAttribute
method to first check the AttributeSet (and up the hierarchy through the
AttributeSet's resolveParent) as normal but then to also (if no
Attribute was found) pass the call up to the parent Element and see if
one can be found in _that_ hierarchy. This is implemented now.
2005-12-15 Anthony Balkissoon <address@hidden>
* javax/swing/text/AbstractDocument.java:
(AbstractElement.getAttribute): If no attribute could be found in the
AttributeSet hierarchy, then try the Element hierarchy instead.
--Tony
AbstractElementGetAttributeFix.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: AbstractDocument fixlet,
Anthony Balkissoon <=