Hi Sandro,

Thanks for the feedback. Comments below:

> - page Up / Down, moved scrollbar but not the cursor, and if Not editable
> elements this is good, but in editable elements would be better to have the
> cursor go the the new position

This is by design. You'd see the same behavior if you manually drag the 
scrollbars. However, as soon as you type something, the caret should scroll 
into position.

> - after playing a little with chars in the demo, if I delete some char (for
> example to have less lines shown) and then I try Start / end other times, I
> get this:

It would be great if you could isolate the steps to produce this problem.

> TextPane: run TextPaneDemo.java

FYI, TextPane wasn't significantly modified as part of this update. The only 
real changes are the class name(s) and the removal of plain text functionality 
from what used to be TextArea and is now called TextPane.

> As a general note, I see that (at least in Windows) the default shortcut to
> go to the first character of a (maybe long, multi-line) text in <CTRL>
> <Home>, and to go the the last character is <CTRL><End>, but nothing seems
> to handle this, is there a reason (not multi-platform behavior for example)
> ?

Home and End are currently wired up to move the caret to the beginning or end 
of the line. That's how text inputs work in Windows so I assumed that text 
areas also worked the same way. What happens on Windows when you press Home or 
End in a multi-line text area? I know I could test this myself, but then I'd 
have to start up my Windows VM and I am being lazy.  :-)

> As, sorry a last thing I've seen some time ago, probably this is wanted or
> not handled because it's a Demo:
> in the Suggestion Demo, anytime I delete a previous char (using the
> BACKSPACE key), the query is not repeated (with all remaining chars), this
> is wanted ? Or there is a programmable timeout to do this ?

It was intentional. I could have coded the app to update the suggestions on 
delete as well, but I chose to go with the Mac convention, which only updates 
when characters are entered. In other words, it is an app-specific decision as 
to what the correct behavior should be.

G




Reply via email to