[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
BadLocationExceptions.
--
thebohemian at gmx dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|audriusa at bluewin dot ch |thebohemian at gmx dot net
Status|ASSIGNED |UNCONFIRMED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27393
- [Bug swing/27393] New: JTextArea.setText("") hangs., audriusa at bluewin dot ch, 2006/05/02
- [Bug swing/27393] JTextArea.setText("") hangs., thebohemian at gmx dot net, 2006/05/02
- [Bug swing/27393] JTextArea.setText("") hangs., audriusa at bluewin dot ch, 2006/05/03
- [Bug swing/27393] JTextArea.setText("") hangs., audriusa at bluewin dot ch, 2006/05/03
- [Bug swing/27393] JTextArea.setText("") hangs., audriusa at bluewin dot ch, 2006/05/03
- [Bug swing/27393] JTextArea.setText("") hangs., audriusa at bluewin dot ch, 2006/05/03
- [Bug swing/27393] JTextArea.setText("") hangs.,
thebohemian at gmx dot net <=
- [Bug swing/27393] JTextArea.setText("") hangs., cvs-commit at developer dot classpath dot org, 2006/05/03
- [Bug swing/27393] JTextArea.setText("") hangs., thebohemian at gmx dot net, 2006/05/03
- [Bug swing/27393] JTextArea.setText("") hangs., thebohemian at gmx dot net, 2006/05/03
- [Bug swing/27393] JTextArea.setText("") hangs., audriusa at bluewin dot ch, 2006/05/04
- [Bug swing/27393] JTextArea.setText("") hangs., audriusa at bluewin dot ch, 2006/05/04
- [Bug swing/27393] JTextArea.setText("") hangs., gnu_andrew at member dot fsf dot org, 2006/05/07