bug-classpath
[Top][All Lists]
Advanced

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

[Bug swing/26193] wrong handling of placing Caret at illegal position


From: roman at kennke dot org
Subject: [Bug swing/26193] wrong handling of placing Caret at illegal position
Date: 9 Feb 2006 17:20:44 -0000


------- Comment #1 from roman at kennke dot org  2006-02-09 17:20 -------
I added some checks to make sure the dot location is valid.

The IllegalArgumentException in the JDK is not thrown from the DefaultCaret,
but instead from the JComponent when calling getSelectedText(). That means it
is only a side effect of this particular implementation and not something that
is relevant. Also, setDot() doesn't seem to do such thing but instead sets the
dot to the nearest valid location. I don't think that the JDK behaviour of
throwing an exception must be replicated. Instead I propose we do like setDot()
does, move the dot to the nearest valid location.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26193





reply via email to

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