本文整理了Java中javax.swing.JTree.setToggleClickCount()
方法的一些代码示例,展示了JTree.setToggleClickCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.setToggleClickCount()
方法的具体详情如下:
包路径:javax.swing.JTree
类名称:JTree
方法名:setToggleClickCount
暂无
代码示例来源:origin: stackoverflow.com
JTree tree = new JTree();
tree.setToggleClickCount(0);
代码示例来源:origin: stackoverflow.com
super();
this.setToggleClickCount(0);
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
private void disableNodeCollapse()
{
currentSelection.setToggleClickCount(0);
}
代码示例来源:origin: stackoverflow.com
JTree jtree = new JTree();
jtree.setToggleClickCount(0);
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
private void disableNodeCollapse()
{
for (LocalCloudMachines machine : LocalCloudMachines.values())
{
if (!machine.equals(LocalCloudMachines.LOCALHOST))
cloudMachineTrees.get(machine).getLeft().setToggleClickCount(0);
}
}
代码示例来源:origin: igniterealtime/Spark
/**
* Constructs a new CheckBox tree.
*
* @param rootNode Node that is the root of this tree.
*/
public CheckTree(CheckNode rootNode) {
tree = new JTree(rootNode);
tree.setCellRenderer(new CheckRenderer());
tree.setRowHeight(18);
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.setToggleClickCount(1000);
tree.putClientProperty("JTree.lineStyle", "Angled");
tree.addMouseListener(new NodeSelectionListener(tree));
setLayout(new BorderLayout());
add(tree, BorderLayout.CENTER);
}
代码示例来源:origin: org.zaproxy/zap
treeSite.setShowsRootHandles(true);
treeSite.setName("nodeSelectTree");
treeSite.setToggleClickCount(1);
treeSite.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
treeSite.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
代码示例来源:origin: org.zaproxy/zap
treeSite.setShowsRootHandles(true);
treeSite.setName("treeSite");
treeSite.setToggleClickCount(1);
代码示例来源:origin: org.zaproxy/zap
treeContext.setShowsRootHandles(true);
treeContext.setName("nodeContextTree");
treeContext.setToggleClickCount(1);
treeContext.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
treeContext.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
代码示例来源:origin: com.jidesoft/jide-oss
tree.setToggleClickCount(1);
tree.setCellRenderer(createTreeCellRenderer());
tree.setRootVisible(false);
代码示例来源:origin: org.biojava.thirdparty/forester
public NodePanel( final PhylogenyNode phylogeny_node ) {
String node_name = "";
if ( !ForesterUtil.isEmpty( phylogeny_node.getName() ) ) {
node_name = phylogeny_node.getName() + " ";
}
final DefaultMutableTreeNode top = new DefaultMutableTreeNode( "Node " + node_name );
createNodes( top, phylogeny_node );
_tree = new JTree( top );
_tree.setEditable( false );
getJTree().setToggleClickCount( 1 );
expandPath( BASIC );
expandPath( TAXONOMY );
expandPath( SEQUENCE );
expandPath( EVENTS );
final JScrollPane tree_view = new JScrollPane( getJTree() );
_pane = new JEditorPane();
_pane.setEditable( false );
final JScrollPane data_view = new JScrollPane( _pane );
final JSplitPane split_pane = new JSplitPane( JSplitPane.VERTICAL_SPLIT );
split_pane.setTopComponent( tree_view );
split_pane.setBottomComponent( data_view );
data_view.setMinimumSize( Constants.NODE_PANEL_SPLIT_MINIMUM_SIZE );
tree_view.setMinimumSize( Constants.NODE_PANEL_SPLIT_MINIMUM_SIZE );
split_pane.setDividerLocation( 400 );
split_pane.setPreferredSize( Constants.NODE_PANEL_SIZE );
add( split_pane );
}
代码示例来源:origin: locationtech/jts
TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.setToggleClickCount(0);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-editor
public ClassHierarchyPanel(boolean isView) {
initComponents();
if (!isView) {
toolBar.remove(0);
toolBar.remove(0);
subtypeButton.setFocusable(true);
supertypeButton.setFocusable(true);
}
setName(NbBundle.getMessage(getClass(), "CTL_ClassHierarchyTopComponent")); // NOI18N
setToolTipText(NbBundle.getMessage(getClass(), "HINT_ClassHierarchyTopComponent")); // NOI18N
tree = new JTree();
treeModel = new DefaultTreeModel(new DefaultMutableTreeNode());
tree.setModel(treeModel);
tree.setToggleClickCount(0);
tree.setCellRenderer(new TreeRenderer());
tree.putClientProperty("JTree.lineStyle", "Angled"); //NOI18N
tree.expandRow(0);
tree.setShowsRootHandles(true);
tree.setSelectionRow(0);
tree.setRootVisible(false);
hierarchyPane.add(tree);
hierarchyPane.setViewportView(tree);
tree.addMouseListener(mouseListener);
}
代码示例来源:origin: org.codehaus.izpack/izpack-panel
tree.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 2));
tree.setBackground(Color.white);
tree.setToggleClickCount(0);
代码示例来源:origin: org.zaproxy/zap
treeContext.setShowsRootHandles(true);
treeContext.setName(CONTEXT_TREE_COMPONENT_NAME);
treeContext.setToggleClickCount(1);
treeContext.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-languages
tree.addMouseListener(listener);
tree.addKeyListener(listener);
tree.setToggleClickCount(Integer.MAX_VALUE); // [PENDING]
tree.setModel (new LanguagesNavigatorModel ());
tree.setCellRenderer (new Renderer ());
代码示例来源:origin: org.gephi/directory-chooser
tree.setRootVisible(false);
tree.setShowsRootHandles(true);
tree.setToggleClickCount(0);
tree.addTreeExpansionListener(new TreeExpansionHandler());
TreeKeyHandler keyHandler = new TreeKeyHandler();
代码示例来源:origin: org.biojava.thirdparty/forester
getJTree().setEditable( true );
getJTree().setFocusable( true );
getJTree().setToggleClickCount( 1 );
getJTree().setInvokesStopCellEditing( true );
final JScrollPane tree_view = new JScrollPane( getJTree() );
代码示例来源:origin: Multibit-Legacy/multibit-hd
sidebarTree.setToggleClickCount(2);
代码示例来源:origin: org.xworker/xworker_core
comp.setToggleClickCount(toggleClickCount);
内容来源于网络,如有侵权,请联系作者删除!