ÓÃ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);
Ïà¹ØÎĵµ£º
¡¡¡¡Ëùν¶ÔÏóÐòÁл¯¾ÍÊǽ«¶ÔÏóµÄ״̬ת»»³É×Ö½ÚÁ÷£¬ÒÔºó¿ÉÒÔͨ¹ýÕâЩֵÔÙÉú³ÉÏàͬ״̬µÄ¶ÔÏó¡£Õâ¸ö¹ý³ÌÒ²¿ÉÒÔͨ¹ýÍøÂçʵÏÖ£¬¿ÉÒÔÏÈÔÚWindows»úÆ÷ÉÏ´´½¨Ò»¸ö¶ÔÏó£¬¶ÔÆäÐòÁл¯£¬È»ºóͨ¹ýÍøÂç·¢¸øÒ»Ì¨Unix»úÆ÷£¬È»ºóÔÚÄÇÀï׼ȷÎÞÎóµØÖØÐ“װÅ䔡£ÊDz»ÊǺÜÉñÆæ¡£
¡¡¡¡Ò²ÐíÄã»á˵£¬Ö»Á˽âÒ»µãµã£¬µ«´ÓÀ´Ã»ÓнӴ¥¹ý£ ......
¡¾ÎÄÕ±êÌâ¡¿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: ......
Ò»¡¢.net Server¶Ë
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Web.Services.Description;
namespace WebApplica ......
³£ÓõÄÉè¼ÆÄ£Ê½·ÖΪÈçÏ 23 ÖÖģʽ£º
Abstract Factory£º
Ìṩһ¸ö´´½¨Ò»ÏµÁÐÏà¹Ø»òÏ໥ÒÀÀµ¶ÔÏóµÄ½Ó¿Ú£¬¶øÎÞÐèÖ¸¶¨ËüÃǾßÌåµÄÀà¡£
Adapter£º
½«Ò»¸öÀàµÄ½Ó¿Úת»»³É¿Í»§Ï£ÍûµÄÁíÒ»¸ö½Ó¿Ú£¬Ê¹µÃÔÀ´ÓÉÓÚ½Ó¿Ú²»¼æÈݶø²»ÄÜÒ»Æð¹¤×÷µÄÄÇЩÀà¿ÉÒÔÒ»Æð¹¤×÷¡£
Bridge£º
½«³éÏ󲿷ÖÓëËüµÄʵÏÖ²¿·Ö·ÖÀ룬ʹ֮¿ÉÒÔ¶ÀÁ¢±ä»¯¡£
C ......