import javax.swing.*; import java.awt.*; import java.awt.event.*; public class InitialTree { public InitialTree() { JFrame f = new JFrame("TreeDemo"); Container contentPane = f.getContentPane(); JTree tree = new JTree(); JScrollPane scrollPane = new JScrollPane(); scrollPane.setViewportView(tree); contentPane.add(scrollPane); f.pack(); f.setVisible(true); f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); } public static void main(String args[]) { new InitialTree(); } }
最近下载更多
fan2019 LV3
1月12日
yangxb2 LV10
2023年10月20日
微信网友_6639502556778496 LV1
2023年9月7日
微信网友_6292282163859456 LV4
2023年1月5日
你们的代码都是我的了 LV16
2022年12月14日
wadadd LV7
2022年9月4日
annunx LV1
2022年4月15日
微信网友_5852742079762432 LV6
2022年3月5日
sswert LV2
2022年2月22日
双方各何必呢 LV13
2021年12月20日
最近浏览更多
20201202038
前天
暂无贡献等级
晨爽明宇 LV1
3月4日
Gin19960217 LV4
1月15日
fan2019 LV3
1月12日
1053001914 LV1
2023年12月28日
求学的熊猫 LV6
2023年12月25日
一眼丁真 LV1
2023年12月16日
shiaomon
2023年12月14日
暂无贡献等级
fesfefe LV13
2023年11月25日
卜算子
2023年10月30日
暂无贡献等级