This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JEditor Pane HTML text issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JEditor Pane HTML text issue" Watch "JEditor Pane HTML text issue" New topic
Author

JEditor Pane HTML text issue

Sanjeev Charla
Ranch Hand

Joined: Apr 02, 2009
Posts: 90

Hi,

During run time i am getting the styled html text from JEditorPane and again setting the same html text to the JEditorPane. But the results are different before and after, like background color is not shown and alignment of text is not done etc etc.

How to resolve this issue ?

Thank you.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175
    
    8

Post your SSCCE code which demonstrates this problem.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JEditor Pane HTML text issue
 
Similar Threads
Different Different Fonts in JEditorPane
HTML in JTextPane/Editor
Override JEditorpane components
Eclipse's AbstractTextEditor - making links "alive"
showing a html file