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

³õѧJAVAÖ®Èý

1¡¢±àдһ¸ö¼òµ¥µÄÎı¾±à¼­Æ÷£¬ÒªÇ󣺾ßÓдò¿ª¡¢±£´æ¡¢Ð½¨£¬Õ³Ìù¡¢¸´ÖƵȹ¦ÄÜ£»¾ßÓÐÒ»¸ö¹¤¾ßÌõ¡£
 
1.1¡¢³ÌÐòÔ´Â루²Î¼ûmenu.java£©£º
 
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.URL;
 
public class menu extends JFrame implements ActionListener
{   
   public menu()
      {
      setDefaultCloseOperation(EXIT_ON_CLOSE);//³ÌÐòÍ˳ö
      JMenuBar menuBar1 = new JMenuBar();//Éú³ÉʵÀý
      JMenu menuFile = new JMenu("Îļþ(File)");//²Ëµ¥ÊµÀý
      JMenu menuEdit = new JMenu("±à¼­(E)");
         JTable jTable = new JTable();//ʵÀý»¯±í¸ñ
        JToolBar toolBar = new JToolBar("mytoolbar!");//¹¤¾ßÌõʵÀý
        toolBar.setVisible(true);//É趨¿É¼û
     
        //¶¨Ò屸ÓõĿì½Ý¼ü
      menuFile.setMnemonic(KeyEvent.VK_F);
      menuEdit.setMnemonic(KeyEvent.VK_E);
       
        //menuFileµÄ²Ëµ¥ÏîʵÀý
      String file [] ={"н¨","´ò¿ª","±£´æ","Áí´æΪ","","Í˳ö"};
      KeyStroke keyStroke1[]={null,
               KeyStroke.getKeyStroke(KeyEvent.VK_O,                  InputEvent.CTRL_MASK),
               null,
               null,
               null,
        &nbs


Ïà¹ØÎĵµ£º

this ÓësuperÔÚjavaÖÐÔËÓÃÕûºÏ


 A.ʹÓùؼü×ÖthisµÄ×¼Ôò£º
1.ÔÚ¹¹ÔìÆ÷ÖУ¬Èç¹ûҪʹÓùؼü×Öthis,ÄÇô£¬±ØÐë·ÅÔÚµÚÒ»ÐУ¬·ñÔò½«µ¼ÖÂÒ»¸ö±àÒë´íÎó¡£
2.¹¹Ôì·½·¨ÒýÓÃthisÖ¸ÏòÕýÔÚÖ´Ðз½·¨µÄÀàµÄʵÀý¡£¾²Ì¬·½·¨²»ÄÜʹÓÃthis¹Ø¼ü×Ö£¬ÒòΪ¾²Ì¬·½·¨²»ÊôÓÚÀàµÄʵÀý£¬ËùÒÔthisÒ²¾ÍûÓÐʲô¶«Î÷È¥Ö¸Ïò¡£¹¹ÔìÆ÷µÄthisÖ¸Ïòͬһ¸öÀàÖУ¬²»Í¬²ÎÊýÁбíµÄÁíÍâÒ» ......

Java SE 5·þÎñÖÜÆÚÒÑÖÕ½á

 ±¾ÔÂ3ÈÕSunµÄJ2SE 5.0ʵÏÖÒÑÖÕ½á·þÎñÖÜÆÚ£¨End of Service Life£¬¼´EOSL£©£¬ÕâÒ»ÌìÒ²ÊÇ×îºóµÄÒ»´Î5.0¸üз¢²¼ÈÕÆÚ£¨J2SE 5.0 Update 22£©¡£Ñ°ÇóSunÖ§³ÖµÄÓû§¿ÉÒÔÑ¡ÔñÉý¼¶µ½Java 6»òÊǶ©ÔÄSunµÄJava for Business³ÌÐò¡£
SunÌṩÁ˶àÖÖ¶àÑùµÄJava¸¶·ÑÖ§³Ö¡£Java¾­µäÖ§³Ö£¨classic support£©º­¸ÇÁË´Ó²úÆ··¢²¼Ö®ÈÕÆð3Äê ......

JAVA·´Éä»úÖÆÈëÃÅ£¨Ò»£©

±¾ÎÄÕë¶Ôjdk6.0ÖÐjava.lang.ClassÀàµÄAPI½øÐÐÁ˼òµ¥µÄʵÀýÓ¦Óã¬Àý×Ó¼òµ¥Ò׶®£¬±È½ÏÊʺÏÈëÃż¶ÔĶÁ¡£
ʵÀý¼ò½é£º
/*
 *IncludeInnerClassÀàÖаüº¬ÁËÈýÖÖ·ÃÎÊ¿ØÖƵÄÄÚ²¿À࣬²¢ÇÒÒÔÕâÈý¸öÄÚ²¿ÀàµÄÒýÓöÔÏóºÍÒ»¸öÕûÐÍÊý×÷ΪÊôÐÔ£¬ÔÚÍⲿÀàµÄ·½·¨Öзֱðµ÷ÓÃÁË   ÄÚ²¿ÀàµÄ·½·¨
 *ÍⲿÀàÓÐÁ½¸ö¹¹Ôì·½·¨£¬ ......

JavaÏß³ÌÖ®Producer

 Producer-Consumer PatternµÄ²ÎÓëÕߣº
1. Data²ÎÓëÕß
    ±»Producer²ÎÓëÕßËù´´½¨£¬²¢ÓÉConsumer²ÎÓëÕßËùʹÓá£
2. Producer£¨Éú²úÕߣ©²ÎÓëÕß
    ´´½¨Data²ÎÓëÕߣ¬²¢½«Æä´«µÝ¸øChannel²ÎÓëÕß¡£
3. Consumer£¨Ïû·ÑÕߣ©²ÎÓëÕß
    ´ÓChannel²ÎÓëÕß»ñÈ¡Data²ÎÓëÕß¡ ......

³õѧJAVAÖ®Ò»

1¡¢ Ò»¸öÊýÈç¹ûÇ¡ºÃµÈÓÚÆäÒò×Ó£¨³ýÁ˱¾ÉíÒÔÍâµÄÔ¼ÊýÖ®ºÍ£©£¬¸ÃÊý¾Í³ÆΪ“ÍêÊý”¡£±àдһ¸ö Java Application  ³ÌÐò£¬Çó³ö 1000 ÒÔÄÚµÄËùÓÐÍêÊý¡£
 
public class homework11
{
public static void main(String[] args)
//Êä³ö1000ÒÔÄÚµÄËùÓÐÍêÊý
{
int sum;       ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ