Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTREE problem  RSS feed

 
Kasun Bandara
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi, i want load structured text in to JTree. can some one tell how to do that? i want to group it when it on same nodes

find attachment below.
i want to load text from 'channel' field

Thank you
java.jpg
[Thumbnail for java.jpg]
Sample text set to load
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Welcome to the Ranch!

First of all, you have to tell us what you have tried. You have to Show Some Effort (click on the link to understand the explanation).
Have you gone through the JTree tutorial? if so, you would understand that, like all Swing components, you have to supply the 'model' for the JTree to work.
So, in your case, you will have to parse the string and write a logic to build the model.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!