• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTextPane/sentence extraction-urgent

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Look ma! I'm selling my stuff!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic