Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓÃjavaÄ£Äâä¯ÀÀÆ÷³ÌÐò

 ³ÌÐòÔ´´úÂ룺
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Cursor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.event.HyperlinkEvent;
import javax.swing.event.HyperlinkListener;
public class browseWeb extends JFrame{
private JTextField enterField;//¶¨ÒåÒ»¸öÎı¾¿ò¶ÔÏó£¬ÓÃÀ´´æ·ÅURL
private JEditorPane contentsArea;//¶¨ÒåÒ»¸öÎı¾Óò¶ÔÏó£¬ÓÃÀ´´æ·ÅÍøÒ³

public browseWeb(){ //¹¹Ô캯Êý
super("Web browser");//ÓÃÓÚÉèÖñêÌâ

enterField=new JTextField("ÇëÔÚ´ËÊäÈëURL");//Éú³ÉÒ»¸öÎı¾¿ò¶ÔÏó
enterField.addActionListener(//ÉèÖüàÌýÕß
new ActionListener(){
public void actionPerformed(ActionEvent event){
getThePage(event.getActionCommand());//¶ÁÈ¡ÍøÒ³£¨»ñÈ¡ÍøÖ·£©
}
}
);

Container container=this.getContentPane();//»ñÈ¡ÄÚÈݸñ
container.add(enterField,BorderLayout.NORTH);//°ÑÎı¾¿ò·ÅÔÚÉÏÃæ
contentsArea=new JEditorPane(); //´´½¨´ø¹ö¶¯ÌõµÄÎı¾Óò
contentsArea.setEditable(false);//ÉèÖÃÎı¾Óò²»¿ÉÒԱ༭

contentsArea.addHyperlinkListener(//ÉèÖ󬼶Á´½Ó¼àÌý
new HyperlinkListener(){
//ÈôÓû§µ¥»÷Á˳¬¼¶Á´½Ó£¬Ôòתµ½Ö¸¶¨Ò³Ãæ
public void hyperlinkUpdate(HyperlinkEvent event){
if(event.getEventType()==HyperlinkEvent.EventType.ACTIVATED)//ʼþÀàÐÍΪ¼¤»îÀàÐÍ
getThePage(event.getURL().toString());//¶ÁÈ¡ÍøÒ³ÄÚÈÝ
}
}
);

container.add(new JScrollPane(contentsArea),BorderLayout.CENTER);//°ÑÎı¾Óò·ÅÔÚÏÂÃæ
this.setSize(500,250);//ÉèÖÿò¼Ü´óС
this.setVisible(true);///ÉèÖÿò¼Ü¿É¼û
}

public void getThePage(String location){//¶ÁÈ¡ÍøÒ³·½·¨
//µ±¶ÁÈ¡Îļþʱ£¬ÉèÖÃÊó±êµÄ¹â±êΪÔËÐÐ̬
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));//°Ñµ±Ç°¹â±êÉèÖÃΪµÈ´ý״̬
try{ //¶ÁÈ¡Îļþ£¬²¢ÔÚÎı¾ÇøÏ


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

JAVAÃæÊÔ×ÛºÏ

1.J2EEÊÇʲô£¿
  2.½éÉÜJAVAÖеÄCollection FrameWork(°üÀ¨ÈçºÎд×Ô¼ºµÄÊý¾Ý½á¹¹)?
    ÈçCOLLECTIONÖÐÒÅÁôÀà(HASHTABLE¡¢VECTOR)ºÍÏÖÓÐÀàµÄÇø±ð£¿(ͬ²½)
  3.JavaÖÐÒì³£´¦Àí»úÖÆ£¬Ê¼þ»úÖÆ£¿
¡¡
  4.EJBÓëJAVA BEANµÄÇø±ð£¿
     EJBÓëJAVA BEANÊÇSUNµÄ²»Í¬×é¼þ ......

Java EE 5 µÄÒ»Ê׸è

Sun¹«Ë¾Ò»ÃûÔ±¹¤×Ô¼º´´×÷µÄ¸è£¬¹ØÓÚJava EE 5£¬ËäÈ»²»ÔõôºÃÌý£¬µ«¸è´ÊºÜÓÐÒâ˼£¬³ÌÐòÔ±ÒµÓàÉú»îÒ²¿ÉÒÔÕâô·á¸»£¬ÏÛĽ£¡
Ladies and gentlemen, this is Java EE 5!
One, two, three, four, five
There’s a technology I use day and night
For my application with a web frontend
They told me to use .Net
......

javaÃæÊÔÌâ1

l    JBS
1.Áоٳö 10¸öJAVAÓïÑÔµÄÓÅÊÆ
a:Ãâ·Ñ£¬¿ªÔ´£¬¿çƽ̨(ƽ̨¶ÀÁ¢ÐÔ)£¬¼òµ¥Ò×Ó㬹¦ÄÜÍêÉÆ£¬ÃæÏò¶ÔÏ󣬽¡×³ÐÔ£¬¶àỊ̈߳¬½á¹¹ÖÐÁ¢£¬ÆóÒµÓ¦ÓõijÉÊìƽ̨, ÎÞÏßÓ¦ÓÃ
2.ÁоٳöJAVAÖÐ10¸öÃæÏò¶ÔÏó±à³ÌµÄÊõÓï
a:°ü£¬À࣬½Ó¿Ú£¬¶ÔÏó£¬ÊôÐÔ£¬·½·¨£¬¹¹ÔìÆ÷£¬¼Ì³Ð£¬·â×°£¬¶à̬£¬³éÏ󣬷¶ÐÍ
3.ÁоٳöJAVAÖÐ6¸ ......

String in Java

 ÖÚËùÖÜÖª£¬StringÊÇÓÉ×Ö·û×é³ÉµÄ´®£¬ÔÚ³ÌÐòÖÐʹÓÃƵÂʺܸߡ£JavaÖеÄStringÊÇÒ»¸öÀ࣬¶ø²¢·Ç»ù±¾Êý¾ÝÀàÐÍ¡£ ²»¹ýËýÈ´²»ÊÇÆÕͨµÄÀàŶ£¡£¡£¡
¡¾¾µÍ·1¡¿ String¶ÔÏóµÄ´´½¨
   1¡¢¹ØÓÚÀà¶ÔÏóµÄ´´½¨£¬ºÜÆÕͨµÄÒ»ÖÖ·½Ê½¾ÍÊÇÀûÓù¹ÔìÆ÷£¬StringÀàÒ²²»ÀýÍ⣺
        & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ