pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: TextAreaSkin
Date Sat, 11 Dec 2010 13:20:56 GMT
These both sound like valid bugs. Do you mind adding them to JIRA?

On Dec 11, 2010, at 5:12 AM, Chris Bartlett wrote:

> Greg,
> 
> I finally found a little time to play around with TextArea today, and it
> looks good.   The only points of note I could find are the following.
> 
> 
> TextAreaSkin fails as follows if when the END key is pressed on the final
> line of a TextArea (ie, a line without a linebreak)
> java.lang.IndexOutOfBoundsException
> at org.apache.pivot.wtk.TextArea.getCharacterAt(TextArea.java:870)
> at org.apache.pivot.wtk.skin.TextAreaSkin.keyPressed(TextAreaSkin.java:934)
> at
> org.apache.pivot.wtk.Component$ComponentKeyListenerList.keyPressed(Component.java:524)
> at org.apache.pivot.wtk.Component.keyPressed(Component.java:2813)
> at
> org.apache.pivot.wtk.ApplicationContext$DisplayHost.processKeyEvent(ApplicationContext.java:1257)
> at java.awt.Component.processEvent(Unknown Source)
> at
> org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:709)
> ...
> You can see this by simply pressing END with a freshly created TextArea with
> no content.
> If you add a second line, END will work on the first line, but throw on the
> last one.
> 
> 
> TextAreaSkin.getInsertionPoint(int, int) did not behave as I anticipated in
> one scenario.
> I was expecting it to place the caret at the end of the text (the same
> placement that would occur if I press the END key) if I left click anywhere
> within the 'space' following the final character in TextArea.
> Clicking in that space currently seems to have no effect.
> 
> Chris


Mime
View raw message