Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Editable JTree

In this section, you will learn to make JTree editable nodes.

Tutorial Details:

For example. . If you want to edit the name of a tree node then the following program will help you a lot.

This program constructs a JTree that contains editable nodes. Firstly, it defines a class JTreeEditable. Here we have used the init() method to create the nodes (Root, open, close, save, save as, and exit) of the tree.


 

Rate Tutorial:
http://www.roseindia.net/java/example/java/swing/JTreeEditable.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Editable JTree

View Tutorial:
Editable JTree

Related Tutorials:

Java 2 introduces print capability to the Swing Forum - JavaWorld June 1999
Java 2 introduces print capability to the Swing Forum - JavaWorld June 1999
 
How to drag and drop with Java 2, Part 2 - JavaWorld August 1999
How to drag and drop with Java 2, Part 2 - JavaWorld August 1999
 
Add drag and drop to your JTrees - JavaWorld Tip 97
Add drag and drop to your JTrees - JavaWorld Tip 97
 
Jato: The new kid on the open source block, Part 3 - JavaWorld May 2001
Jato: The new kid on the open source block, Part 3 - JavaWorld May 2001
 
Add ghosted drag images to your JTrees - JavaWorld Tips
Add ghosted drag images to your JTrees - JavaWorld Tips
 
Implement a J2EE-aware application console in Swing
Implement a J2EE-aware application console in Swing
 
a-visual-llk-parser-generator VisualLangLab
a-visual-llk-parser-generator: VisualLangLab A Visual IDE-Style LL(k) Parser Generator that uses an editable tree with icons for tokens and non-terminals to represent the grammar symbols and grammar rules.
 
Create intelligent Web spiders
Create intelligent Web spiders This article demonstrates how to create an intelligent Web spider based on standard Java network objects. The heart of this spider is a recursive routine that can perform depth-first Web searches based on keyword/phrase cri
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.