Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree with two JRadioButton  RSS feed

 
William Flores
Ranch Hand
Posts: 32
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!!
Anyone ever seen a JTree with two JRadionButton in each node?
I'm implementing a JTree, I get implement the JTree with a node in each node, but I need implement it with two nodes in each node.

Anyone has any idea?
 
Randall Twede
Ranch Hand
Posts: 4690
8
Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
with no more information than that, all i can say is maybe you make a class that has two radio buttons, and assign that class as the node.
 
William Flores
Ranch Hand
Posts: 32
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, but can you give me a example with code, please?
 
William Flores
Ranch Hand
Posts: 32
Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!!

I solved that problem.
I found that
http://blogs.oracle.com/geertjan/entry/swing_outline_component
http://stackoverflow.com/questions/1436281/help-making-a-jtree-with-a-jcheckbox?answertab=oldest#tab-top

I used the two tutorials to implement.

Thanks!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!