Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Unicode equivalent for <br>. Any idea?

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am looking for the Unicode equivalent for <br> in JTextPane (with content-type set to "text/html").
Imagine:

And I want the above to print a <br> in the HTML. Does anyone has any idea?
 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eric,
You can find it a one of the page of Unicode, propable this one:
http://www.unicode.org/charts/PDF/U2200.pdf

Marcel
 
Eric Low
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To explain my intention, lets take a look into a portion of my code:

As shown above, basically, I am trying to insert <br> instead of <p> whenever the user press return. I have tried input :

to the JTextPane, then display the result to the JTextArea, what I get is

I am really confused!!??!?!?
Please help!
Eric Low
SCJP2
 
Eric Low
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have found the answer, it's JRE ver problem, it happens only to v1.3.0, this has been fixed in 1.3.1.... please read :
http://forums.java.sun.com/thread.jsp?forum=57&thread=126795
Seeya!
Eric Low
SCJP2
 
reply
    Bookmark Topic Watch Topic
  • New Topic