• 大小: 0.37M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-01
  • 标签: swing  java  树形  菜单  

资源简介

java swing树形菜单结构例子,动态选择数据

代码片段和文件信息

package control;

import java.awt.Color;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.Vector;

import javax.swing.JFileChooser;
import javax.swing.JTable;
import javax.swing.JTree;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.filechooser.FileFilter;
import javax.swing.table.DefaultTableModel;

import model.GradeNode;
import model.Node;
import model.Student;
import model.StudentNode;
import ui.Mainframe;
import ui.UIUtil;

public class GradeTree implements  TreeSelectionListener {
public final static String[] className = { “一年级“ “二年级“ “三年级“ “四年级

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        232  2010-10-22 10:48  studentsManager\.classpath

     文件        391  2010-10-22 10:48  studentsManager\.project

     文件       4757  2010-10-31 23:53  studentsManager\src\ui\Mainframe.java

     文件       2004  2010-10-10 17:10  studentsManager\src\ui\Message.java

     文件       5169  2011-04-07 17:30  studentsManager\src\ui\RecordDialog.java

     文件        239  2010-10-23 00:29  studentsManager\src\ui\Run.java

     文件       8222  2011-04-07 17:32  studentsManager\src\ui\SuperMessagePane.java

     文件       2086  2010-10-24 01:01  studentsManager\src\ui\UIUtil.java

     文件        496  2010-10-31 23:26  studentsManager\src\model\GradeNode.java

     文件        268  2010-10-22 16:11  studentsManager\src\model\Node.java

     文件       1177  2010-10-24 22:16  studentsManager\src\model\Student.java

     文件        443  2010-10-22 16:22  studentsManager\src\model\StudentNode.java

     文件       5659  2011-04-07 17:40  studentsManager\src\control\GradeTree.java

     文件        129  2010-09-22 00:56  studentsManager\icon\icon_completion.gif

     文件        294  2010-09-22 00:47  studentsManager\icon\icon_error.gif

     文件       2396  2010-09-23 20:38  studentsManager\icon\icon_info.png

     文件       2411  2010-09-23 20:38  studentsManager\icon\icon_question.png

     文件        710  2010-09-22 00:47  studentsManager\icon\icon_warning.gif

     文件       2892  2010-10-10 15:41  studentsManager\icon\progressbar.gif

     文件       1259  2010-10-24 23:20  studentsManager\data\students.csv

     文件       1259  2011-04-07 17:41  studentsManager\data\students1.csv

     文件       2717  2011-04-07 17:30  studentsManager\bin\ui\UIUtil.class

     文件       6747  2011-04-07 17:32  studentsManager\bin\ui\SuperMessagePane.class

     文件       1319  2011-04-07 17:32  studentsManager\bin\ui\SuperMessagePane$1.class

     文件       1721  2011-04-07 17:32  studentsManager\bin\ui\SuperMessagePane$MyContainer.class

     文件        504  2011-04-07 17:30  studentsManager\bin\ui\Run.class

     文件        478  2011-04-07 17:30  studentsManager\bin\ui\Run$1.class

     文件       6093  2011-04-07 17:30  studentsManager\bin\ui\RecordDialog.class

     文件       2056  2011-04-07 17:30  studentsManager\bin\ui\Message.class

     文件       6218  2011-04-07 17:30  studentsManager\bin\ui\Mainframe.class

............此处省略23个文件信息

评论

共有 条评论