• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tree in JTextComponent

 
Sergio Baca
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to create a tree in some child of JTextComponent, it should be something like Outline View in MS Word, or like multiple foldings in some IDEs. Where can I find more information about how it can be achieved and what swing components can I use? May be there are some good open source examples?

Thank you in advance.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to Use TextPanes. You can add a JTree to a JTextPane with the insertComponent method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!