ÓÃjavaÄ£Äâд×Ö°å³ÌÐò
Ô´³ÌÐò´úÂ룺
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionAdapter;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JRadioButton;
//####################################
//¿ÉÄÜÓÐʱºò³ÌÐòÔËÐкóʲôҲûÓУ¬ÄãÐèÒªÊó±êÔÚÆÁÄ»ÉÏÒƶ¯Ï²ÅÄܳöÏÖ°´Å¥£¬
//ÖÁÓÚΪʲô£¬±¾Äñ²»¶®¡«¡«ÒÔºóÓдýÑо¿
//######################################
public class testEventMouse extends JFrame{ //Ö÷À࣬¼Ì³ÐJFrameÀ࣬ÒòΪҪÓõ½paint()·½·¨£¬ËùÒÔ
//±ØÐë¼Ì³ÐÒ»¸öFrameÀ࣬·ñÔòÎÒÕâ¸ö³õѧÕß»¹Ã»Ñ§µ½ÆäËû¿ÉÒÔµ÷ÓÃpaint()µÄ·½·¨
Container contentPanel; //ÄÚÈݸñÒýÓÃ
JButton b1,b2,b3,b4,b5;//ÕâÊÇÎå¸ö°´Å¥
JRadioButton backGroundRadio,foreGroundRadio; //¶¨ÒåÁ½¸öµ¥Ñ¡¿ò
ButtonGroup radioGroup; //µ¥Ñ¡°´Å¥×é
int xValue,yValue; //±£ÁôÊó±êλÖã¨x,y£©
JFrame jf=this;//°Ñµ±Ç°¶ÔÏó¸³Öµ¸øjf£¬ÒòΪÎÒºóÀ´µ÷´úÂëµÄʱºò·¢ÏÖ£¬±³¾°É«ÊÇÄÚÈݸñ»òÕß˵ÊÇÆäËü×é¼þ
//À´¹ÜÀíµÄ£¬Frame¿ò¼ÜÀàÊDz»¹ÜÀí±³¾°É«µÄ£»µ«ÊÇÎÒÖ®ËùÒÔÒª»ñÈ¡JFrameµÄ¶ÔÏó£¬ÊÇÒòΪǰ¾°É«Ö»Óпò¼ÜÀà
//Äܹ»¹ÜÀí£¬ÆäËüµÄ×é¼þûÓÐ×ʸñÀ´¹ÜÀí£»ºóÃæ×öʼþ´¦ÀíµÄ»°£¬Äã»á·¢ÏÖ
public testEventMouse(){ //¹¹Ô캯Êý
super("08¼Æ±¾ ²Ü·æ--Ä£Äâд×Ö°å");
b1=new JButton("Black");//ʵÏÖÎå¸ö°´Å¥
b2=new JButton("Blue");
b3=new JButton("Red");
b4=new JButton("White");
b5=new JButton("Yellow");
contentPanel=this.getContentPane();//»ñÈ¡ÄÚÈݸñ
contentPanel.setLayout(new FlowLayout());//ÉèÖÃÄÚÈݸñµÄ²¼¾Ö¹ÜÀíÆ÷
backGroundRadio=new JRadioButton("backGround"); //ʵÀý»¯¸´Ñ¡¿ò
foreGroundRadio=new JRadioButton("foreGround");
contentPanel.add(backGroundRadio);//Ìí¼Óµ½ÄÚÈݸñÀïÃæÈ¥
contentPanel.add(foreGroundRadio);
contentPanel.add(b1);//Ìí¼Ó°´Å¥
contentPanel.add(b2);
contentPanel.add(b3);
contentPanel.add(b4);
contentPanel.add(b5);
MouseListenerHandler mou=new MouseListenerHandler(); //ʵÏÖÒ»
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
Ser1¡¢ÃæÏò¶ÔÏóµÄÌØÕ÷ÓÐÄÄЩ·½Ãæ
1.³éÏó£º
³éÏó¾ÍÊǺöÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êÎ޹صÄÄÇЩ·½Ã棬ÒÔ±ã¸ü³ä·ÖµØ×¢ÒâÓ뵱ǰĿ±êÓйصķ½Ãæ¡£³éÏó²¢²»´òËãÁ˽âÈ«²¿ÎÊÌ⣬¶øÖ»ÊÇÑ¡ÔñÆäÖеÄÒ»²¿·Ö£¬ÔÝʱ²»Óò¿·Öϸ½Ú¡£³éÏó°üÀ¨Á½¸ö·½Ã棬һÊǹý³Ì³éÏ󣬶þÊÇÊý¾Ý³éÏó¡£
2.¼Ì³Ð£º
¼Ì³ÐÊÇÒ»ÖÖÁª½áÀàµÄ²ã´ÎÄ£ÐÍ£ ......
96¡¢JAVAÓïÑÔÈçºÎ½øÐÐÒì³£´¦Àí£¬¹Ø¼ü×Ö£ºthrows,throw,try,catch,finally·Ö±ð´ú±íʲôÒâÒ壿ÔÚtry¿éÖпÉÒÔÅ׳öÒì³£Âð£¿
Javaͨ¹ýÃæÏò¶ÔÏóµÄ·½·¨½øÐÐÒì³£´¦Àí£¬°Ñ¸÷ÖÖ²»Í¬µÄÒì³£½øÐзÖÀ࣬²¢ÌṩÁËÁ¼ºÃµÄ½Ó¿Ú¡£ÔÚJavaÖУ¬Ã¿¸öÒì³£¶¼ÊÇÒ»¸ö¶ÔÏó£¬ËüÊÇThrowableÀà»òÆäËü×ÓÀàµÄʵÀý¡£µ±Ò»¸ö·½·¨³öÏÖÒì³£ºó±ãÅ׳öÒ»¸öÒì³£¶ÔÏó£¬ ......
18.×öÒ»¸öµ¥×ÓģʽµÄÀֻ࣬¼ÓÔØÒ»´ÎÊôÐÔÎļþ
package com.softeem.demo;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
*@authorleno
*µ¥×Óģʽ£¬±£Ö¤ÔÚÕû¸öÓ¦ÓÃÆÚ¼äÖ»¼ÓÔØÒ ......
¹¤×÷ÐèÒª£¬Õë¶ÔjavaÎļþ£¬×÷ÁËÒ»¸öÐÐÊýͳ¼ÆµÄ¹¤¾ß¡£Í³¼ÆµÄÖ÷Òª´úÂëÈçÏ£º
Set srcIn = fso.OpenTextFile(fileNm, ForReading)
Do While Not srcIn.AtEndOfStream
buf = srcIn.ReadLine
&nbs ......