Hello,

My application uses Polish special characters and it looks like Pivot
has some problems with them.

In TextInput component, if I write there some special chars,
copy/paste functionality stops working:
if I write  "łóżźć" inside TextInput, then select text using mouse, if
I press Ctrl+C I get:


java.lang.IndexOutOfBoundsException
        at org.apache.pivot.wtk.text.TextNode.getRange(TextNode.java:255)
        at org.apache.pivot.wtk.TextInput.getSelectedText(TextInput.java:603)
        at org.apache.pivot.wtk.TextInput.copy(TextInput.java:438)
        at 
org.apache.pivot.wtk.skin.terra.TerraTextInputSkin.keyPressed(TerraTextInputSkin.java:1249)
        at 
org.apache.pivot.wtk.Component$ComponentKeyListenerList.keyPressed(Component.java:514)
        at org.apache.pivot.wtk.Component.keyPressed(Component.java:2656)
        at 
org.apache.pivot.wtk.ApplicationContext$DisplayHost.processKeyEvent(ApplicationContext.java:1217)
        at java.awt.Component.processEvent(Unknown Source)
        at 
org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:655)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown 
Source)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown 
Source)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)



Other issue I have is with polish special character "ą" - it's  made
using right alt+a on the polish programmer keyboard setting. The
result is that the char is not appended to the text but it replaces
the whole TextInput text content,   "some text" + (alt+a) -> "ą"


It's critical for me to get it fixed...

best regards
Kamil Toszek

Reply via email to