java¿ì½Ý¼ü
Ctrl+1 ¿ìËÙÐÞ¸´(×î¾µäµÄ¿ì½Ý¼ü,¾Í²»Óöà˵ÁË)
Ctrl+D: ɾ³ýµ±Ç°ÐÐ
Ctrl+Alt+↓ ¸´ÖƵ±Ç°Ðе½ÏÂÒ»ÐÐ(¸´ÖÆÔö¼Ó)
Ctrl+Alt+↑ ¸´ÖƵ±Ç°Ðе½ÉÏÒ»ÐÐ(¸´ÖÆÔö¼Ó)
Alt+↓ µ±Ç°ÐкÍÏÂÃæÒ»Ðн»»¥Î»ÖÃ(ÌرðʵÓÃ,¿ÉÒÔÊ¡È¥ÏȼôÇÐ,ÔÙÕ³ÌùÁË)
Alt+↑ µ±Ç°ÐкÍÉÏÃæÒ»Ðн»»¥Î»ÖÃ(ͬÉÏ)
Alt+← Ç°Ò»¸ö±à¼µÄÒ³Ãæ
Alt+→ ÏÂÒ»¸ö±à¼µÄÒ³Ãæ(µ±È»ÊÇÕë¶ÔÉÏÃæÄÇÌõÀ´ËµÁË)
Alt+Enter ÏÔʾµ±Ç°Ñ¡Ôñ×ÊÔ´(¹¤³Ì,or Îļþ orÎļþ)µÄÊôÐÔ
Shift+Enter ÔÚµ±Ç°ÐеÄÏÂÒ»ÐвåÈë¿ÕÐÐ(ÕâʱÊó±ê¿ÉÒÔÔÚµ±Ç°ÐеÄÈÎһλÖÃ,²»Ò»¶¨ÊÇ×îºó)
Shift+Ctrl+Enter ÔÚµ±Ç°ÐвåÈë¿ÕÐÐ(ÔÀíͬÉÏÌõ)
Ctrl+Q ¶¨Î»µ½×îºó±à¼µÄµØ·½
Ctrl+L ¶¨Î»ÔÚijÐÐ (¶ÔÓÚ³ÌÐò³¬¹ý100µÄÈ˾ÍÓи£ÒôÁË)
Ctrl+M ×î´ó»¯µ±Ç°µÄEdit»òView (ÔÙ°´Ôò·´Ö®)
Ctrl+/ ×¢Ê͵±Ç°ÐÐ,ÔÙ°´ÔòÈ¡Ïû×¢ÊÍ
Ctrl+O ¿ìËÙÏÔʾ OutLine
Ctrl+T ¿ìËÙÏÔʾµ±Ç°ÀàµÄ¼Ì³Ð½á¹¹
Ctrl+W ¹Ø±Õµ±Ç°Editer
Ctrl+K ²ÎÕÕÑ¡ÖеÄWord¿ìËÙ¶¨Î»µ½ÏÂÒ»¸ö
Ctrl+E ¿ìËÙÏÔʾµ±Ç°EditerµÄÏÂÀÁбí(Èç¹ûµ±Ç°Ò³ÃæûÓÐÏÔʾµÄÓúÚÌå±íʾ)
Ctrl+/(С¼üÅÌ) ÕÛµþµ±Ç°ÀàÖеÄËùÓдúÂë
Ctrl+×(С¼üÅÌ) Õ¹¿ªµ±Ç°ÀàÖеÄËùÓдúÂë
Ctrl+Space ´úÂëÖúÊÖÍê³ÉһЩ´úÂëµÄ²åÈë(µ«Ò»°ãºÍÊäÈë·¨ÓгåÍ»,¿ÉÒÔÐÞ¸ÄÊäÈë·¨µÄÈȼü,Ò²¿ÉÒÔÔÝÓÃAlt+/À´´úÌæ)
Ctrl+Shift+E ÏÔʾ¹ÜÀíµ±Ç°´ò¿ªµÄËùÓеÄViewµÄ¹ÜÀíÆ÷(¿ÉÒÔÑ¡Ôñ¹Ø±Õ,¼¤»îµÈ²Ù×÷)
Ctrl+J ÕýÏòÔöÁ¿²éÕÒ(°´ÏÂCtrl+Jºó,ÄãËùÊäÈëµÄÿ¸ö×Öĸ±à¼Æ÷¶¼Ìṩ¿ìËÙÆ¥Å䶨λµ½Ä³¸öµ¥´Ê,Èç¹ûûÓÐ,ÔòÔÚstutes lineÖÐÏÔʾûÓÐÕÒµ½ÁË)
Ctrl+Shift+J ·´ÏòÔöÁ¿²éÕÒ(ºÍÉÏÌõÏàͬ,Ö»²»¹ýÊÇ´ÓºóÍùÇ°²é)
Ctrl+Shift+F4 ¹Ø±ÕËùÓдò¿ªµÄEditer
Ctrl+Shift+X °Ñµ±Ç°Ñ¡ÖеÄÎı¾È«²¿±äΪ´óд
Ctrl+Shift+Y °Ñµ±Ç°Ñ¡ÖеÄÎı¾È«²¿±äΪСд
Ctrl+Shift+F ¸ñʽ»¯µ±Ç°´úÂë
Ctrl+Shift+P ¶¨Î»µ½¶ÔÓÚµÄÆ¥Åä·û(Æ©Èç{}) (´ÓÇ°Ã涨λºóÃæʱ,¹â±êÒªÔÚÆ¥Åä·ûÀïÃæ,ºóÃ浽ǰÃæ,Ôò·´Ö®)
Ctrl+Shift+R ²éÕÒÎļþ
Ctrl+Shift+T ²éÕÒÀà
Alt+Shift+R ÖØÃüÃû (ÊÇÎÒ×Ô¼º×î°®ÓõÄÒ»¸öÁË,ÓÈÆäÊDZäÁ¿ºÍÀàµÄRename,±ÈÊÖ¹¤·½·¨ÄܽÚÊ¡ºÜ¶àÀͶ¯Á¦)
Alt+Shift+M ³éÈ¡·½·¨ (ÕâÊÇÖع¹ÀïÃæ×î³£Óõķ½·¨Ö®Ò»ÁË,ÓÈÆäÊǶÔÒ»´ó¶ÑÄàÍÅ´úÂëÓÐÓÃ)
Alt+Shift+C Ð޸ĺ¯Êý½á¹¹(±È½ÏʵÓÃ,ÓÐN¸öº¯Êýµ÷ÓÃÁËÕâ¸ö·½·¨,ÐÞ¸ÄÒ»´Î¸ã¶¨)
Alt+Shift+L ³éÈ¡±¾µØ±äÁ¿( ¿ÉÒÔÖ±½Ó°ÑһЩħ·¨Êý×ÖºÍ×Ö·û´®³éÈ¡³ÉÒ»¸ö±äÁ¿,ÓÈÆäÊǶദ
Ïà¹ØÎĵµ£º
//package ÓéÀÖ;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.text.DecimalFormat;
import javax.swing ......
1.Áоٳö 10¸öJAVAÓïÑÔµÄÓÅÊÆ
a:Ãâ·Ñ£¬¿ªÔ´£¬¿çƽ̨(ƽ̨¶ÀÁ¢ÐÔ)£¬¼òµ¥Ò×Ó㬹¦ÄÜÍêÉÆ£¬ÃæÏò¶ÔÏ󣬽¡×³ÐÔ£¬¶àỊ̈߳¬½á¹¹ÖÐÁ¢£¬ÆóÒµÓ¦ÓõijÉÊìƽ̨, ÎÞÏßÓ¦ÓÃ
2.ÁоٳöJAVAÖÐ10¸öÃæÏò¶ÔÏó±à³ÌµÄÊõÓï
a:°ü£¬À࣬½Ó¿Ú£¬¶ÔÏó£¬ÊôÐÔ£¬·½·¨£¬¹¹ÔìÆ÷£¬¼Ì³Ð£¬·â×°£¬¶à̬£¬³éÏ󣬷¶ÐÍ
3.ÁоٳöJAVAÖÐ6¸ö±È½Ï³£ÓÃµÄ ......
Ò»¡¢Ð´pdf
ÐèÒª°ü£ºiText-2.1.0.jar
ÖÐÎÄ´¦Àí£ºiTextAsian.jar
1¡¢HelloWorldÀý×Ó
package com.my.file.pdf;
import java.io.FileOutputStream;
import java.io.IOException;
import com.lowagie.text.*;
import com.lowagie.text.pdf.BaseFont;
import com.lowagie.text.pdf.PdfWriter;
public class HelloWorld ......
¹éÄÉһЩÍøÉÏÈ¡JAVA·¾¶µÄ·½·¨£º
×¢Ã÷£ºÈç¹û´ÓANTÆô¶¯³ÌÐò£¬this.getClass().getResource("")È¡³öÀ´µÄ±È½Ï¹Ö£¬Ö±½ÓÓÃJAVAÃüÁîÐе÷ÊԾͿɳÉ
¹¦¡£
µÃµ½classpathºÍµ±Ç°ÀàµÄ¾ø¶Ô·¾¶µÄһЩ·½·¨
»ñµÃCLASSPATHÖ®Íâ·¾¶µÄ·½·¨£º
URL base = this.getClass£¨£©.getResource£¨""£©£»
//ÏÈ»ñµÃ±¾ÀàµÄËùÔ ......
JAVA¶¨Ê±Ö´ÐÐÈÎÎñµÄÈýÖÖ·½·¨
1) java.util.Timer
Õâ¸ö·½·¨Ó¦¸ÃÊÇ×î³£Óõģ¬²»¹ýÕâ¸ö·½·¨ÐèÒªÊÖ¹¤Æô¶¯ÄãµÄÈÎÎñ£º
Timer timer=new Timer();
timer.schedule(new ListByDayTimerTask(),10000,86400000);
ÕâÀïµÄListByDayTimerTaskÀà±ØÐëextends TimerTaskÀïÃæµÄrun()·½·¨¡£
2) ServletContextListener
Õâ¸ö·½·¨ ......