• 大小: 5.06KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-20
  • 语言: Java
  • 标签:

资源简介

Java 双击编辑树节点功能(基础篇-实例360).zip

资源截图

代码片段和文件信息

package com.mingrisoft.jtree;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.DefaultCellEditor;
import javax.swing.Jframe;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JTree;
import javax.swing.border.EmptyBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeCellEditor;
import javax.swing.UIManager;

public class EditableTree extends Jframe {
    
    /**
     * 
     */
    private static final long serialVersionUID = -6092916733029206964L;
    private JPanel contentPane;
    private JTree tree;
    
    /**
     * Launch the application.
     */
    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(“com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel“);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         232  2010-09-11 17:00  .classpath
     文件         379  2010-09-11 17:00  .project
     文件         791  2013-11-21 08:41  bin\com\mingrisoft\jtree\EditableTree$1.class
     文件         734  2013-11-21 08:41  bin\com\mingrisoft\jtree\EditableTree$2.class
     文件        3770  2013-11-21 08:41  bin\com\mingrisoft\jtree\EditableTree.class
     文件        3718  2010-09-11 17:00  src\com\mingrisoft\jtree\EditableTree.java

评论

共有 条评论