• 大小: 28.29M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-16
  • 语言: Java
  • 标签:

资源简介

java swing示例大全(入门级)

资源截图

代码片段和文件信息

// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@

package example;

import java.awt.*;
import java.awt.event.MouseEvent;
import java.util.objects;
import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeCellRenderer;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreeSelectionModel;

public final class MainPanel extends JPanel {
  private MainPanel() {
    super(new BorderLayout());

    JTree tree0 = new JTree(new DefaultTreeModel(makeTreeRoot())) {
      @Override public void updateUI() {
        super.updateUI();
        setCellRenderer(new TooltipTreeCellRenderer());
      }
    };
    ToolTipManager.sharedInst

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-08-23 09:36  java-swing-tips-master\
     文件         188  2019-08-23 09:36  java-swing-tips-master\.editorconfig
     目录           0  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\
     文件       22539  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\build.xml
     文件         152  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\config.gradle
     目录           0  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\config\
     文件         458  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\config\jnlp.xml
     文件        2145  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\config\properties.xml
     文件         526  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\run.bat
     文件         614  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\run.sh
     目录           0  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\src\
     目录           0  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\src\java\
     目录           0  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\src\java\example\
     文件        8067  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\src\java\example\MainPanel.java
     目录           0  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\src\web\
     文件         537  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\src\web\example.jnlp
     文件         341  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\src\web\index.html
     文件        3185  2019-08-23 09:36  java-swing-tips-master\AboveCellTreeToolTips\src\web\screenshot.png
     目录           0  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\
     文件       22539  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\build.xml
     文件         152  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\config.gradle
     目录           0  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\config\
     文件         423  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\config\jnlp.xml
     文件        2145  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\config\properties.xml
     文件         526  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\run.bat
     文件         614  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\run.sh
     目录           0  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\src\
     目录           0  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\src\java\
     目录           0  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\src\java\example\
     文件        6686  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\src\java\example\MainPanel.java
     目录           0  2019-08-23 09:36  java-swing-tips-master\AccordionPanel\src\web\
............此处省略13650个文件信息

评论

共有 条评论