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 UL list in a JTextPane 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 "UL list in a JTextPane" Watch "UL list in a JTextPane" New topic
Author

UL list in a JTextPane

Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Hi!

I'm trying to build a WYSIWYG editor in java. How can I implement a <ul><li></li></ul> list in my JTextpane? I have tried to use insertHTML() method but it doesn't show the bullets! When I'm view the source it looks like this


// Mathias


SCJP1.4
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
I solved it!

The problem was that I used a styleshhet with the html document and the bullet disappeard.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UL list in a JTextPane
 
Similar Threads
jQuery -- add remove list item
Hiding child element - IE works, but Mozilla no
selecting pure text in jquery
Help! this html code does not work
Not achieving space between div blocks containing lists