Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextPane problem ' ==> [] ??????????????  RSS feed

 
kannan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
We are developing one text editor using JTextPane, here I got one problem in copy and paste??? That is, if I copy and paste the text:
that�s right. ==> that[]s right.
please help how to eleminate this problem??
-kannan
 
Bhagya Tangutur
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried the same ..it works fine if it's been copied to notepad.where as it will result in to ' for []when you copied to Java realted to String.you could eliminate this by prefending \ for ',hope this solves problem.
I don't know whether it's an elegant answer.i am gald if i would be helpful.
Ex:
"TextPane's" problem must go like >> "TextPane\'s"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!