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

JTextPane/sentence extraction-urgent  RSS feed

 
Sonara Rahul
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
How could I the sentence line by line in JTextPane.
I have set a html content say for exampl
<html>This is my first line.df d dsfs dfsfsdfdsfd sdfdsfdsfsd dsfds fdsfdsfdsfsd dsfdsfsdf dsf dfdsf dsfdsfdfdsf dsf sdf s</html>,this has been set to JTextPane.
When output is viewed it has four lines as specified below.
This is my first line.df d dsfs
dfsfsdfdsfd sdfdsfdsfsd dsfds
fdsfdsfdsfsd dsfdsfsdf dsf dfdsf
dsfdsfdfdsf dsf sdf s.
How culd I get each sentence line by line.
There is no break tag specified in html content.Break tag will not be present.
So how come this can be done.
Any Suggestions,
Regards,
Sonara.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!