Java-jtree and JTable

Source: Internet
Author: User

Steps to use JTree:

  1. Create a node of a tree as the head node (its child nodes are also the same method of creation): Defaultmutabletreenode Headnode = new Defaultmutabletreenode ("First level");
  2. Then the node is added using the JTree Setmodel method (the other nodes are added via the head node), and the head node is added to display.
  3. Create a sub-node, add a sub-node with the Add method of the head node, and then must be displayed with the UpdateUI () method of the JTree (refresh once per plus)

Java-jtree and JTable

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.