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

资源简介

Java 设置树控件选择模式(基础篇-实例353).zip

资源截图

代码片段和文件信息

package com.mingrisoft.jtree;

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

import javax.swing.ButtonGroup;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.border.EmptyBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeSelectionModel;
import javax.swing.UIManager;

public class TreeSelectModeTest extends Jframe {
    
    /**
     * 
     */
    private static final long serialVersionUID = -8668891664815693398L;
    private JPanel contentPane;
    private JTree tree;
    
    /**
     * Launch the application.
     */
    public static void main(String[] args)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         232  2010-09-11 17:00  .classpath
     文件         379  2010-09-11 17:00  .project
     文件         821  2013-11-21 08:41  bin\com\mingrisoft\jtree\TreeSelectModeTest$1.class
     文件         770  2013-11-21 08:41  bin\com\mingrisoft\jtree\TreeSelectModeTest$2.class
     文件         803  2013-11-21 08:41  bin\com\mingrisoft\jtree\TreeSelectModeTest$3.class
     文件         803  2013-11-21 08:41  bin\com\mingrisoft\jtree\TreeSelectModeTest$4.class
     文件         803  2013-11-21 08:41  bin\com\mingrisoft\jtree\TreeSelectModeTest$5.class
     文件        5084  2013-11-21 08:41  bin\com\mingrisoft\jtree\TreeSelectModeTest.class
     文件        5799  2010-09-11 17:00  src\com\mingrisoft\jtree\TreeSelectModeTest.java

评论

共有 条评论