[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/27393] JTextArea.setText("") hangs.

From: thebohemian at gmx dot net
Subject: [Bug swing/27393] JTextArea.setText("") hangs.
Date: 3 May 2006 16:43:30 -0000

------- Comment #6 from thebohemian at gmx dot net  2006-05-03 16:43 -------
No the bug should be fixed in a different way.

It can be easily fixed by changing a line in DefaultCaret.clearHighlight()
which creates an empty selection. This will fix that the problem is triggered
but not the endless recursion you saw.

However by further examining how the View and TextUI classes of the JDK works
when no allocation area is present (= allocation area is [0,0,0,0] = component
is not displayed or has a zero size) I found out that
BasicTextUI.getVisibleRect() has to be return null in that case like
BasicTextUI.modelToView() - which then does not forward to the View classes.

If someone directly calls on the view classes (ie. by doing
ta.getRootView().getView(0).modelToView(....) ) they have to throw


thebohemian at gmx dot net changed:

           What    |Removed                     |Added
         AssignedTo|audriusa at bluewin dot ch  |thebohemian at gmx dot net
             Status|ASSIGNED                    |UNCONFIRMED


reply via email to

[Prev in Thread] Current Thread [Next in Thread]