I assume the following problem is a bug.
When typing the character ' in a JTextPane the cursor jumbs to positions and types it.
This missbehaviour is reproducable also with TextComponentDemo.java as published on
I run this demo using
Java Web Start 1.7.0-ea
Using JRE version 1.7.0-ea-b81 Java HotSpot(TM) Client VM
you can also reproduce the same by simply typing this character in the given demo pane.
here the details of the character on my machine:
*** KEY TYPED ***[getID =401]