ÓÃJAVAʵÏÖÁË´øÓи´Ñ¡¿òµÄÊ÷Ŀ¼
JDK°æ±¾
JDK1.4.x
¹¦ÄÜ
ʵÏÖÁË´øÓи´Ñ¡¿òµÄ×ÊÔ´¹ÜÀíÆ÷Ê÷Ŀ¼£¬»¹ÓÐÐèÒª¸Ä½øµÄµØ·½£¬ÎÒÔÚÒÔºó¸üУ¬Èç¹ûÄÇλÅóÓÑÓкõĽ¨Òé»¶ÓÌá³ö
»¶Ó´ó¼ÒÌáÒâ¼û£¬½»Á÷
´úÂëÈçÏÂ
import javax.swing.tree.*;
import javax.swing.filechooser.*;
import javax.swing.event.*;
import java.awt.Cursor;
import java.awt.Component;
import java.awt.Font;
import java.io.*;
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
/**
* Title: ϵͳ¼¶Ê÷Ŀ¼
* Description:
* Copyright: Copyright (c) 2004
* Company:
* @author cuijiang contact cj0063@sina.com or cuij7718@yahoo.com.cn
* @version 1.0
*/
public class AgileSuperJTreeBasic
extends JTree
implements TreeExpansionListener, TreeSelectionListener, MouseListener {
protected DefaultTreeModel treeModel;
protected FileSystemView fileSystemView; //½¨Á¢ÎļþϵͳÊÓÀà¶ÔÏó
protected FileNode root;
public AgileSuperJTreeBasic() {
Font myFont = new Font("ËÎÌå", 11, 12);
fileSystemView = FileSystemView.getFileSystemView();
root = new FileNode(fileSystemView.getRoots()[0]);
root.explore();
treeModel = new DefaultTreeModel(root);
this.setModel(treeModel); //É趨Ê÷Ðβ˵¥
this.addTreeExpansionListener(this); //´ò¿ª/¹Ø±Õ½Úµãʼþ
this.addTreeSelectionListener(this); //Ñ¡ÔñµÄʼþ
this.setCellRenderer(new MyTreeCellRenderer()); //Éú³Éͼ±ê
this.setFont(myFont);
this.setRootVisible(true);
this.setRowHeight(18);
Ïà¹ØÎĵµ£º
´úÂëÈçÏ£º
1 String command = " cmd /c C:/Program Files/MySQL/MySQL Server 5.0/bin>mysqldump -h localhost -u root -p aijia > E:/aijia.dmp " ;
2 try {
3 Process process& ......
×î½üÓöµ½Ò»¸öÐèÇóÒªÔÚlinuxÏÂÓÃjava µ÷ÓÃmysql¿Í»§¶ËÔ¶³ÌµÇ½mysql·þÎñÆ÷£¬´Ó¿Í»§¶Ë»úÆ÷µ¼Èëmysql½Å±¾£¬´Ómysql·þÎñÆ÷¶Ëµ¼³ö±íÖеÄÊý¾Ý¡£ÒÔÏÂÊÇÓõ½µÄÖ÷Òª·½·¨£º
Java ´úÂë
/**
* µ¼ÈëÊý¾Ý
* @param ½Å±¾µÄµØÖ·ºÍÃû³Æ
* @return ÊÇ·ñ³ ......
¡¾ÎÄÕ±êÌâ¡¿javaС³ÌÐò£¨3£©
¡¾ÎÄÕÂ×÷Õß¡¿Ôø½¡Éú
¡¾×÷ÕßÓÊÏä¡¿zengjiansheng1@126.com
¡¾×÷ÕßQQ¡¿190678908
¡¾×÷ÕßÉùÃ÷¡¿±¾ÈËˮƽÓÐÏÞ£¬Ê§ÎóÖ®´¦£¬¾´Çë¸÷λָ³ö¡£±¾ÈËÒÔǰдµÄһЩС³ÌÐò£¬·ÖÏíÒ»ÏÂÏ£Íû¶Ô¸÷λѧϰjavaÓаïÖú ^-^
***************************************************************************** ......
µÚÒ»²½.н¨Ò»¸öÄ£°åÎļþÒÔ.ftl½áβ¡£
IDAO.ftl
package com.media.dao;
import java.util.List;
import com.media.bean.${model_name};
import com.media.exceptions.DAOException;
/**
* ${model_name_cn}½Ó¿Ú
*
* @author ${author}
* @link ${link}
*
* @version $Revision: 1.00 $ $Date: ......
ÔÎĵØÖ·:
http://blog.csdn.net/luozhenyu/archive/2008/11/07/3247740.aspx
×î½üµÄÒ»¸öÏîÄ¿£¬²ÉÓÃJSP+Servlet¿ª·¢µÄWebÓ¦Ó㬹¦Äܲ»¸´ÔÓ£¬Éæ¼°µ½Ò»Ð©¶àÏ̴߳¦Àí¼°ÍøÂç±à³Ì¡£²âÊÔÆÚ¼ä·¢ÏÖÔÚ»áÔì³ÉϵͳʱÖÓ±ä¿ì£¬»ù±¾ÔËÐв»µ½Ò»Ð¡Ê±¾Í¿ìÁË10À´·ÖÖÓ£¬¿ª³öʱÖÓ³ÌÐòÄÜÃ÷ÏԸоõÃëÖÓÌø¶¯±È½Ï¿ì¡£¼ì²é¹ý´úÂëûÓÐÓõ½ÈκÎÓйØÊ±¼ ......