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

JAVA AWT ʼþ´¦Àí¼°ÄÚ²¿ÀàµÄʵÏÖ


import java.awt.*;
import java.awt.event.*;
public class TestFrame {
 Frame fm = new Frame();
 public void init(){
  
  fm.setSize(300,300);
  Button btn = new Button("ok");
  
  fm.add(btn);
  btn.addActionListener(new ActionListener(){
   public void actionPerformed(ActionEvent e){
     fm.dispose();
    }   
  });
  //fm.addWindowListener(new WindowLisener());
  fm.addWindowListener(new WindowAdapter(){
   public void windowClosing(WindowEvent e){
    fm.setVisible(false);
    fm.dispose();    
   }
  });
  fm.setVisible(true);
  try{
   Thread.sleep(10000);
  }catch(Exception e){}
  fm.dispose();
 }
 public static void main(String[] args) {
  
  TestFrame tf = new TestFrame();
  tf.init(); 
 } 
}


Ïà¹ØÎĵµ£º

Java SE 6¸üУ¬ÐÔÄÜ´ó·ùÌáÉý

2010-01-16 06:51
¾ÝInternetNews.com±¨µÀ
£¬×÷Ϊ½ñÄêµÄµÚÒ»´Î¸üУ¬Java SE 6 Update 18£¨Ò²³ÆΪ6u18£©²»½öÐÞ¸´Á˳¬¹ý300¸öbug£¨¹»¶àµÄ°¡£©£¬¶øÇÒ¸üÖµµÃ×¢ÒâµÄÊÇ£¬ÌáÉýÁËÐéÄâ»úHotSpotµÄÐÔÄÜ£¬Õ⽫ͬʱÓÐÒæÓÚJavaºÍJavaFX£¨»ùÓÚJVMµÄRIA·½°¸£©Ó¦ÓóÌÐò¡£
´ËÍ⣬Java°²×°Æ÷µÄµ×²ã»úÖƱ»Ìæ»»£¬¿ÉÓÃÐÔ´ó´óÌá¸ß¡£
jarÎļþ´ ......

É÷ÓÃJava×°ÏäÓë²ðÏä

ת×Ôhttp://xyiyy.javaeye.com/blog/358401
J2SE5.0ºóÌṩÁË×Ô¶¯×°ÏäÓë²ðÏäµÄ¹¦ÄÜ£¬´Ë¹¦ÄÜÊÂʵÉÏÊDZàÒëÆ÷À´°ïÄúµÄ棬±àÒëÆ÷ÔÚ±àÒëʱÆÚÒÀÄúËù±àдµÄ·½·¨£¬¾ö¶¨ÊÇ·ñ½øÐÐ×°Ïä»ò²ðÏ䶯×÷¡£ÀýÈ磺
                     ......

JavaÃæÊÔ¾­µäÊÔÌâ¼°´ð°¸

µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£ ¡¡¡¡
final—ÐÞÊηû£¨¹Ø¼ü×Ö£©Èç¹ûÒ»¸öÀà±»ÉùÃ÷Ϊfinal£¬Òâζ×ÅËü²»ÄÜÔÙÅÉÉú³öеÄ×ÓÀ࣬²»ÄÜ×÷Ϊ¸¸Àà±»¼Ì³Ð¡£Òò´ËÒ»¸öÀ಻Äܼȱ»ÉùÃ÷Ϊ
abstractµÄ£¬ÓÖ±»ÉùÃ÷ΪfinalµÄ¡£½«±äÁ¿»ò·½·¨ÉùÃ÷Ϊfinal£¬¿ÉÒÔ±£Ö¤ËüÃÇÔÚʹÓÃÖв»±»¸Ä±ä¡£±»ÉùÃ÷ΪfinalµÄ±äÁ¿±ØÐëÔÚÉùÃ÷ʱ¸ø¶¨ ......

java»ù´¡ÊÔÌâ

Ò»£®Ñ¡ÔñÌ⣨ÿµÀÌâ3·Ö£¬¹²45·Ö£©
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
                             
£¨1£©ÏÂÁйØÓÚJavaÓïÑÔµÄÌص㣬ÃèÊö´íÎóµÄÊÇ£¨ &nb ......

Java, .Net·¢Õ¹·½ÏòºÍÇ°¾°


Java, .Net·¢Õ¹·½ÏòºÍÇ°¾°
JAVAÓïÑÔ·¢Ã÷ÒÑÓÐ10ÄêÀúÊ·,ÔÚIBM¡¢SUNµÈ¹«Ë¾µÄÍƶ¯ÏÂÒѾ­±È½ÏÎȶ¨Óë³ÉÊ죬»ñµÃÁË´ó¹æÄ£ÆóÒµµÄÆÕ±éÓ¦Óá£Ê±ÖÁ½ñÈÕ£¬J2EEÒѾ­·¢Õ¹³ÉΪһ¸ö¸²¸ÇÃæ¹ã£¬Ð§Âʸߣ¬Ò×ÓÃÐÔÇ¿µÄ¼¼Êõƽ̨£¬ÎüÒýÁË400Íò¿ª·¢Õߣ¬ÔÚÍøÂç¼¼Êõ±é¼°È«ÇòµÄµÄ½ñÌ죬¸üÓÐ17.5ÒŲ́É豸ʹÓÃJAVA¼¼Êõ.ͬʱ, Mustang°æ±¾µÄJ2EEÕýÔÚ½ôÂà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ