[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/26843] JTextArea with lineWrap=true - up/down movement broken
From: |
cvs-commit at developer dot classpath dot org |
Subject: |
[Bug swing/26843] JTextArea with lineWrap=true - up/down movement broken |
Date: |
1 Apr 2006 15:09:26 -0000 |
------- Comment #6 from cvs-commit at developer dot classpath dot org
2006-04-01 15:09 -------
Subject: Bug 26843
CVSROOT: /cvsroot/classpath
Module name: classpath
Branch:
Changes by: Robert Schuster <address@hidden> 06/04/01
15:08:28
Modified files:
javax/swing/text: CompositeView.java BoxView.java Utilities.java
WrappedPlainView.java
. : ChangeLog
Log message:
Fixes PR #26843 (for real!).
2006-04-01 Robert Schuster <address@hidden>
* javax/swing/text/CompositeView.java:
(modelToView): Throw BadLocationException when no child
view can be found, restructed to throw exception as early
as possible.
(viewToModel): Use mutable allocation as argument for viewToModel
call on child view.
* javax/swing/text/BoxView.java:
(getViewAtPoint): Call setBounds() r before method returns with
suitable child view.
* javax/swing/text/Utilities.java:
(getPositionBelow): Added try-catch-block around modelToView call,
added method return when BadLocationException was thrown.
* javax/swing/text/WrappedPlainView.java:
(WrappedLine.viewToModel): Changed '<' to '<=' in if-expression,
added note about meaning of rect.x and rect.width, removed unneeded
checks, added code to not return the last possible document offset.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/CompositeView.java.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/BoxView.java.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/Utilities.java.diff?tr1=1.26&tr2=1.27&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/WrappedPlainView.java.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6972&tr2=1.6973&r1=text&r2=text
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26843