这2个,我都不会阿 !哪有代码可以下载吗 ?
解决方案 »
- 如何一个web工程中加载另一个工程中spring的配置文件applicationContext.xml
- 使用jbpm开发工作流,请大侠们给点建议!
- 将struts2 2.0.11.2版本升级到struts2.3.1.2版本后ActionContext.getContext()为null,求解
- jsp如何打印多个空格?
- 在开发JSP时,一般都使用JSTL吗?
- io流打开无后缀文件
- 我是新手,问个TOMCAT的问题(对不起大家,我的分都没了)
- springside3 如何实现Manager对象互相注入
- 如何定期做事呢?
- 讨论一种大型商务网站的架构模式
- 分页的一个怪问题,急需解决?
- 在jsp中总是连接不上数据库,为什么.请教一下
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();
}
}