java ·ºÐÍ
ÔÚ
Java SE1.5
ÖУ¬
Ôö¼ÓÁËÒ»¸öеÄÌØÐÔ£º·ºÐÍ£¨ÈÕ±¾ÓïÖеÄ×ܳÆÐÍ£©¡£ºÎν·ºÐÍÄØ£¿Í¨Ë×µÄ˵£¬¾ÍÊÇ·º·ºµÄÖ¸¶¨¶ÔÏóËù²Ù×÷µÄÀàÐÍ£¬¶ø²»Ïñ³£¹æ·½Ê½Ò»ÑùʹÓÃijÖ̶ֹ¨µÄÀàÐÍÈ¥Ö¸¶¨¡£
·ºÐ͵ı¾ÖʾÍÊǽ«Ëù²Ù×÷µÄÊý¾ÝÀàÐͲÎÊý»¯£¬Ò²¾ÍÊÇ˵£¬¸ÃÊý¾ÝÀàÐͱ»Ö¸¶¨ÎªÒ»¸ö²ÎÊý¡£ÕâÖÖ²ÎÊýÀàÐÍ¿ÉÒÔʹÓÃÔÚÀà¡¢½Ó¿ÚÒÔ¼°·½·¨¶¨ÒåÖС£
Ò»¡¢
ΪʲôʹÓ÷ºÐÍÄØ£¿
ÔÚÒÔÍùµÄ
J2SE
ÖУ¬Ã»ÓзºÐ͵ÄÇé¿öÏ£¬Í¨³£ÊÇʹÓÃ
Object
ÀàÐÍÀ´½øÐжàÖÖÀàÐÍÊý¾ÝµÄ²Ù×÷¡£Õâ¸öʱºò²Ù×÷×î¶àµÄ¾ÍÊÇÕë¶Ô¸Ã
Object
½øÐÐÊý¾ÝµÄÇ¿ÖÆת»»£¬¶øÕâÖÖת»»ÊÇ»ùÓÚ¿ª·¢Õ߶ԸÃÊý¾ÝÀàÐÍÃ÷È·µÄÇé¿öϽøÐеģ¨±ÈÈ罫
Object
ÐÍת»»Îª
String
ÐÍ£©¡£ÌÈÈôÀàÐͲ»Ò»Ö£¬±àÒëÆ÷ÔÚ±àÒë¹ý³ÌÖв»»á±¨´í£¬µ«ÔÚÔËÐÐʱ»á³ö´í¡£
ʹÓ÷ºÐ͵ĺô¦ÔÚÓÚ£¬ËüÔÚ±àÒëµÄʱºò½øÐÐÀàÐÍ°²È«¼ì²é£¬²¢ÇÒÔÚÔËÐÐʱËùÓеÄת»»¶¼ÊÇÇ¿ÖƵģ¬ÒþʽµÄ£¬´ó´óÌá¸ßÁË´úÂëµÄÖØÓÃÂÊ¡£
¶þ¡¢
·ºÐ͵ļòµ¥Àý×Ó£º
Ê×ÏÈ£¬ÎÒÃÇÀ´¿´¿´ÏÂÃæÁ½¸öÆÕͨµÄ
class
¶¨Òå
public class getString {
private String myStr;
public String getStr() {
return myStr;
}
public void setStr(str) {
myStr = str;
}
}
public class getDouble {
private
Double myDou;
public Double getDou() {
return myDou;
}
public void setDou(dou) {
myDou = dou;
}
}
ÕâÁ½¸ö
class
³ýÁËËù²Ù×÷µÄÊý¾ÝÀàÐͲ»Ò»Ö£¬ÆäËû»úÄܶ¼ÊÇÏàͬµÄ¡£ÏÖÔÚ£¬ÎÒÃÇ¿ÉÒÔʹÓ÷ºÐÍÀ´½«ÉÏÃæÁ½¸ö
class
ºÏ²¢ÎªÒ»¸ö£¬´Ó¶øÌá¸ß´úÂëÀûÓÃÂÊ£¬¼õÉÙ´úÂëÁ¿¡£
public class getObj<T> {
private T myObj ;
&n
Ïà¹ØÎĵµ£º
ʹÓÃjar°ü:
commons-pool-1.5.3.jar,tomcat-naming-common.jar,commons-pool-1.5.3-bin.zip,commons-dbcp.jar
×¢Òâ:jdbc Çý¶¯ÒªÓëÊý¾Ý¿â¼æÈÝ.
package test.comm;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Hashtable;
import javax.naming.InitialCont ......
ʹÓõ÷ÊÔģʽ¼´¿É¡£
½øTOMCATµÄmanager¿ØÖÆ̨£¬¿ÉÒÔ¶ÔÖ¸¶¨µÄÐéÄâĿ¼½øÐпØÖÆ£¨¼ÓÔØ£¬ÖØÔØ£¬Ð¶ÔØ£©£¬±ÈÖØÆô¿ìµÄ¶à£¬ÔÚTOMCATµÄĬÈÏÊ×Ò³ÉÏÓÐÁ´½Ó¡£
============================================================================================
ÎÒÃÇÔÚ¿ª·¢µÄ¹ý³Ì¾³£ÐèÒªµ÷ÊÔ£¬Ò²³£³£ÐèÒªÐÞ¸ÄʹÓõÄÀàºÍservlet£¬Èç¹û ......
¡¡Ò»¡¢Àí½â¶àÏß³Ì
¡¡¡¡¶àÏß³ÌÊÇÕâÑùÒ»ÖÖ»úÖÆ£¬ËüÔÊÐíÔÚ³ÌÐòÖв¢·¢Ö´Ðжà¸öÖ¸ÁîÁ÷£¬Ã¿¸öÖ¸ÁîÁ÷¶¼³ÆΪһ¸öỊ̈߳¬±Ë´Ë¼ä»¥Ïà¶ÀÁ¢¡£
¡¡¡¡Ïß³ÌÓÖ³ÆΪÇáÁ¿¼¶½ø³Ì£¬ËüºÍ½ø³ÌÒ»ÑùÓµÓжÀÁ¢µÄÖ´ÐпØÖÆ£¬ÓɲÙ×÷ϵͳ¸ºÔðµ÷¶È£¬Çø±ðÔÚÓÚÏß³ÌûÓжÀÁ¢µÄ´æ´¢¿Õ¼ä£¬¶øÊǺÍËùÊô½ø³ÌÖеÄÆäËüÏ̹߳²ÏíÒ»¸ö´æ´¢¿Õ¼ä£¬ÕâʹµÃÏ̼߳äµÄͨÐÅ ......
¡¡¡¡1¡¢Ê²Ã´ÊÇJavaBean£¿
¡¡¡¡JavaBeanÊÇÃèÊöJavaµÄÈí¼þ×é¼þÄ£ÐÍ£¬ÓеãÀàËÆÓÚMicrosoftµÄCOM×é¼þ¸ÅÄî¡£ÔÚJavaÄ£ÐÍÖУ¬Í¨¹ýJavaBean¿ÉÒÔÎÞÏÞÀ©³äJava³ÌÐòµÄ¹¦ÄÜ£¬Í¨¹ýJavaBeanµÄ×éºÏ¿ÉÒÔ¿ìËÙµÄÉú³ÉеÄÓ¦ÓóÌÐò¡£¶ÔÓÚ³ÌÐòÔ±À´Ëµ£¬×îºÃµÄÒ»µã¾ÍÊÇJavaBean¿ÉÒÔʵÏÖ´úÂëµÄÖظ´ÀûÓ ......
ÏÂÃæÊÇÎÒÈÏΪÕýÈ·µÄ×ö·¨£¨½áºÏ×Ô¼ºµÄ¾ÑéдµÄ£¬Èç¹û²»ÕýÈ·£¬Çë´ó¼ÒÖ¸Õý£©£º
ÎҵĻæͼ¿Ø¼þÊÇJPanel£¬
³öÏÖ¹ö¶¯ÌõµÄÇ°Ìᣬ±ØÐëÈûæͼ¿Ø¼þ·ÅÔÚJScrollPaneÉÏ£¬
¶ÔÓÚJScrollPaneµÄLayout£¬Ã»ÓÐÌØÊâÒªÇó£¬ÏÂÃæÕâÑù¼´¿É£º
jScrollPane1.setViewportView(jPanel1);
È»ºó£¬ÁíÍâά³ÖÒ»¸öBufferedImage£¨¼ÙÉè½Ðimage1£©£¬¸÷ÖÖÍ¼Ï ......