File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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