ÓÃ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±ÊÊÔËã·¨Ì⣡(2008-11-06 12:49:19)±êÇ©£ºjava ÃæÊÔÌâ it ·ÖÀࣺJ2SE
ÔÌâÈçÏ£ºÓÃ1¡¢2¡¢2¡¢3¡¢4¡¢5ÕâÁù¸öÊý×Ö£¬ÓÃjavaдһ¸ömainº¯Êý£¬´òÓ¡³öËùÓв»Í¬µÄÅÅÁУ¬È磺512234¡¢412345µÈ£¬ÒªÇó£º "4 "²»ÄÜÔÚµÚÈý룬 "3 "Óë "5 "²»ÄÜÏàÁ¬.
ÎÒ¿´ÁË»ØÌù¶¼Ã»Óкܺýâ¾ö£¬Ö÷ÒªÊÇûÓÐÅųýÖ ......
Ò»¡¢.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 ......
Éè¼ÆÄ£Ê½ÔÚÁ£¶ÈºÍ³éÏó²ã´ÎÉϸ÷²»Ïàͬ¡£ÓÉÓÚ´æÔÚÖÚ¶àµÄÉè¼ÆÄ£Ê½£¬ËùÒÔÎÒÃÇ¿ÉÒÔÓÃÒ»ÖÖ·½Ê½½«ËüÃÇ×éÖ¯ÆðÀ´¡£ÕâÀÎÒÃǸù¾ÝÁ½Ìõ×¼Ôò¶Ôģʽ½øÐзÖÀ࣬ÈçϱíËùʾ£º
µÚÒ»ÊÇÄ¿µÄ×¼Ôò£¬¼´Ä£Ê½ÊÇÓÃÀ´Íê³Éʲô¹¤×÷µÄ¡£Ä£Ê½ÒÀ¾ÝÆäÄ¿µÄ¿É·ÖΪ´´½¨ÐÍ£¨ Creational£©¡¢½á¹¹ÐÍ( Structural)¡¢»òÐÐΪÐÍ( Behavioral )ÈýÖÖ¡£´´½¨ÐÍģʽÓë¶Ô ......
Êý¾Ý¿â²¿·Ö:
1.¾ÙÀý˵Ã÷Dynamic SQLµÄÔÀí¼°Ó¦Óã¿
2.¾ÙÀý˵Ã÷Êý¾Ý¿âË÷ÒýµÄÓÅȱµã£¿
3.Èç¹ûÓÉÄãÀ´Éè¼ÆÊý¾ÝµÄrollback,ÄãµÄ˼·ºÍ·½°¸£¿
4.¼ÙÉèÓÐÒ»¸ötable£¬ÃûΪpages£¬ÓÐËĸö×Ö¶Î,id ,url,title,body¡£ÀïÃæ´¢Á˺ܶàÍøÒ³£¬ÍøÒ³µÄurlµØÖ·£¬titleºÍÍøÒ³ÄÚÈÝ£¬ÓÃÒ»¸ö
sql²éѯ½«urlÆ¥ÅäµÄÅÅÔÚ×îÇ°Ãæ£¬titleÆ¥ÅäµÄÔÚÆä´Î£¬b ......