 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
cccc Guest
|
Posted: Mon May 24, 2004 12:56 pm Post subject: CheckBox nei nodi di una JTree |
|
|
Ciao a tutti,
sto cercando di capire se è possibile inserire un CheckBox in ogni nodo di
una JTree.
Ho fatto un po di ricerche si Google ma senza successo.
Qualcuno può aiutarmi?
Ciao,
CC
|
|
| Back to top |
|
 |
Giorgio Gallo Guest
|
Posted: Tue May 25, 2004 12:32 am Post subject: Re: CheckBox nei nodi di una JTree |
|
|
cccc wrote:
| Quote: | Ciao a tutti,
sto cercando di capire se è possibile inserire un CheckBox in ogni nodo di
una JTree.
Ho fatto un po di ricerche si Google ma senza successo.
Qualcuno può aiutarmi?
Ciao,
CC
|
Cito dai javadoc di JTree:
To use JTree to display compound nodes (for example, nodes containing
both a graphic icon and text), subclass TreeCellRenderer and use
setCellRenderer(javax.swing.tree.TreeCellRenderer) to tell the tree to
use it. To edit such nodes, subclass TreeCellEditor and use
setCellEditor(javax.swing.tree.TreeCellEditor).
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|