posted 20 years ago
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.