Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  *  Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the GNU Lesser Public License v2.1
  *  which accompanies this distribution, and is available at
  *  http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  *
  *  Contributors:
  *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - initial API and implementation
 */
package de.ipk_gatersleben.bit.bi.edal.rmi.client.gui;
Defines the requirements for an object that can be used as a tree node in a JTree.

Implementations of DefaultMutableTreeNode that override isLeaf Because when we build the directory tree, we use lazy load, we want all the files looks like a directroy, so the isLeaf() method return false Refer to javax.swing.tree.TreeModel for more information.

Author(s):
Jinbo Chen
Version:
1.0
	private static final long serialVersionUID = 1L;
	{
		super(obj);
	}
	public boolean isLeaf() {
		return false;
	}
New to GrepCode? Check out our FAQ X