Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UL list in a JTextPane

 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved it!

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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic