Re: JTextPane: Workaround for invisible text with hanging indents?
- From: Adam Warner <usenet@xxxxxxxxxxxxxxxxx>
- Date: Sun, 28 Aug 2005 11:10:04 +1200
On Sat, 27 Aug 2005 23:21:43 +0200, Christian Kaufhold wrote:
>> Assuming my code correctly invokes this API, can anyone come up with a
>> workaround to make the text appear while it is typed?
>
> See below, with NegativeFirstLineIndentParagraphView2. ParagraphView2
> allows settings first and other line indents independently (but does not
> allow negative values)
Christian, your hundreds of lines example of how to implement a new styled
editor kit view to overcome this bug is greatly appreciated! It also helps
me understand how developers manage to work around bugs in Sun's Java when
they're prohibited from fixing Java itself.
It looks like this Bug ID comment from 2001 is fully applicable today:
<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4336804>
Submitted On 05-NOV-2001
hubersn
It is just incredible if you look at the amount of bugs and the
apparent lack of regression tests with the Swing text classes. 1.1.x
had working TABs, but had problems with a negative first line indent.
1.2.2 had a working first line indent, but TABs did not work at all
(!). 1.3 had working TABs again, but no first line indent - again. All
versions are not able to fully justify text, although that
functionality is properly documented and should be expected to work.
End of story: implement your own paragraph view. Based on past
experience, I would not rely on any coming Sun implementation.
Thanks again,
Adam
.
- References:
- JTextPane: Workaround for invisible text with hanging indents?
- From: Adam Warner
- Re: JTextPane: Workaround for invisible text with hanging indents?
- From: Christian Kaufhold
- JTextPane: Workaround for invisible text with hanging indents?
- Prev by Date: Re: setting size of elements
- Next by Date: setFont()
- Previous by thread: Re: JTextPane: Workaround for invisible text with hanging indents?
- Next by thread: Re: JTextPane: Workaround for invisible text with hanging indents?
- Index(es):
Relevant Pages
|
|