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

JavaͼÐνçÃæ±à³Ì×ܽá

1. ²¼¾Ö¹ÜÀíÆ÷
ÈÝÆ÷Àï×é¼þµÄ´óСºÍλÖÃÊÇÓɲ¼¾Ö¹ÜÀíÆ÷À´¾ö¶¨µÄ¡£ÈÝÆ÷¶Ô²¼¾Ö¹ÜÀíÆ÷µÄÌض¨ÊµÀý±£³ÖÒ»¸öÒýÓ㬵±ÈÝÆ÷ÐèÒª¶¨Î»Ò»¸ö×é¼þʱ£¬Ëü½«µ÷Óò¼¾Ö¹ÜÀíÆ÷À´Íê³É£¬¾ö¶¨Ò»¸ö×é¼þµÄ´óСʱҲÊÇÈç´Ë¡£
 
ÔÚawtÖÐÓÐÎåÖÖ²¼¾Ö¹ÜÀíÆ÷
BorderLayOut
FlowLayOut
GridLayOut
GardLayOut
GridBagLayOut
 
1.       BorderLayOut Ëü½«ÈÝÆ÷×é¼þ·Ö³É±±¡¢ÄÏ¡¢¶«¡¢Î÷¡¢ÖÐÎå¸öÇøÓò£¬Ã¿¸öÇøÓò×î¶àÖ»ÄÜ°üº¬Ò»¸ö×é¼þ, ²¢Í¨¹ýÏàÓ¦µÄ³£Á¿½øÐбêʶ£ºNORTH¡¢SOUTH¡¢EAST¡¢WEST¡¢CENTER¡£ÀýÈ磺
Panel p = new Panel();
p.setLayout(new BorderLayout());
p.add(new Button("Okay"), BorderLayout.SOUTH);
 
2.       FlowLayOut Á÷ʽ²¼¾Ö¹ÜÀíÆ÷£¬Ëü½«×é¼þÒÀ´ÎÅÅÁУ¬Á÷µÄ·½ÏòÈ¡¾öÓÚÈÝÆ÷µÄ componentOrientation ÊôÐÔ£¬Ëü¿ÉÄÜÊÇÒÔÏÂÁ½¸öÖµÖеÄÒ»¸ö£ºComponentOrientation.LEFT_TO_RIGHT ComponentOrientation.RIGHT_TO_LEFT
 
3.       GridLayOut Ëü½«ÈÝÆ÷×é¼þ·Ö¸î³ÉÍø¸ñ×´ £¬¿ÉÒÔÖ¸¶¨·Ö¸î³É¼¸Ðм¸ÁУ¬¿ÉÒÔͨ¹ý¹¹Ô캯ÊýGridLayout(int rows, int cols)À´Ö¸¶¨ÐÐÁС£
 
4.       GardLayOut
5.       GridBagLayOut ¸´ÔӵIJ¼¾Ö¹ÜÀí¡£
 
AWTʼþÄ£ÐÍ
Events(ʼþ)£ºÃèÊö·¢ÉúÁËʲôµÄ¶ÔÏó¡£
Event Source(ʼþÔ´)£ºÊ¼þµÄ²úÉúÆ÷¡£
Event Handlers(ʼþ´¦ÀíÆ÷):½ÓÊÕʼþ¶ÔÏó¡¢½âÊÍʼþ¶ÔÏó²¢´¦ÀíÓû§½»»¥µÄ·½·¨¡£
²Ëµ¥
ÔÚjavaÖв˵¥ÓÉÈýÏî×é³É²Ëµ¥À¸¡¢²Ëµ¥¡¢²Ëµ¥Ïî·Ö±ðÊÇÈý¸öÀàMenuBar,Menu,MenuItem.
Ìí¼Ó²Ëµ¥µÄ²½ÖèÈçÏ£º
MenuBar objMenuBar = new MenuBar();              //´´½¨Ò»¸ö²Ëµ¥À¸
      
       //´´½¨Á½¸ö²Ëµ¥
       Menu objFileMenu = new Menu("Îļþ");
       Menu objEditMenu = new Menu("±à¼­");
      
       //´´½¨²Ëµ¥Ïî
       MenuItem mi1 = new MenuItem("´ò¿ª");
       Menu


Ïà¹ØÎĵµ£º

JavaÖи÷ÀàCache»úÖÆʵÏÖ½â¾ö·½°¸

ÔÚJavaÖУ¬²»Í¬µÄÀ඼ÓÐ×Ô¼ºµ¥¶ÀµÄCache»úÖÆ£¬ÊµÏֵķ½·¨Ò²¿ÉÄÜÓÐËù²»Í¬£¬ÎÄÕÂÁоÙÁËJavaÖг£¼ûµÄ¸÷ÀàCache»úÖƵÄʵÏÖ·½·¨£¬Í¬Ê±½øÐÐÁË×ۺϵıȽϡ£
OSCache
OSCacheÊǸöÒ»¸ö¹ã·º²ÉÓõĸßÐÔÄܵÄJava EE»º´æ¿ò¼Ü£¬OSCacheÄÜÓÃÓÚÈκÎJavaÓ¦ÓóÌÐòµÄÆÕͨµÄ»º´æ½â¾ö·½°¸¡£
OSCacheÓÐÒÔÏÂÌص㣺»º´æÈκζÔÏó£¬Äã¿ÉÒÔ²»ÊÜÏÞÖƵ ......

JAVA²¢·¢±à³Ìʵ¼ù

×î½ü¶ÁÍê<Java²¢·¢±à³Ìʵ¼ù>,ÎÞÒÉÕâÊÇÒ»±¾ºÃÊé,ËüʹµÃÎÒ¶ÔÏß³Ì,Ëø,ÒÔ¼°Óë²¢·¢Ïà¹ØµÄ
һЩ֪ʶÌåϵ¸ü¼ÓÍ걸,Ïл°²»¶à˵,ÏÂÃæÎÒϵͳÊáÀíÁËÏÂÀïÃæµÄһЩÀíÂÛÒªµã,ÏàÐÅʵ¼ùÉÏ
Ãæ,´ó¼Ò»ò¶à»òÉÙ¶¼»áÓÐÌå»á,ÄÇôÓÃÀíÂÛµÄ֪ʶµã½«Êµ¼ùÌå»áÁýÂçÆðÀ´,½«»áÐγɸü¼ÓÀιÌ
ºÍÍ걸µÄ֪ʶÌåϵ,ÖÁÉÙÎÒÕâôÈÏΪ,дÕâһƪ±Ê¼ÇÒ²ÊÇÓÃÒÔ ......

JAVA ÏîÄ¿¾­ÀíµÄÖ°Ôð¸ÅÊö

ÏîÄ¿¾­ÀíµÄÖ°Ôð£º
1¡¢»ù±¾Ö°Ôð¾ÍÊÇÈ·±£ÏîÄ¿Ä¿±êµÄʵÏÖ£¬Áìµ¼ÏîÄ¿ÍŶÓ׼ʱ¡¢ÓÅÖʵØÍê³ÉÈ«²¿¹¤×÷¡£
2¡¢Óë¿Í»§¹µÍ¨£¬Á˽âÏîÄ¿µÄÕûÌåÐèÇó¡£²¢Óë¿Í»§±£³ÖÒ»¶¨µÄÁªÏµ£¬¼°Ê±·´À¡½×¶ÎÐԳɹû£¬¼°Ê±¸ü¸Ä¿Í»§Ìá³öµÄºÏÀíÐèÇó¡£
3¡¢Öƶ¨ÏîÄ¿¿ª·¢¼Æ»®Îĵµ£¬Á¿»¯ÈÎÎñ£¬²¢ºÏÀí·ÖÅä¸øÏà¹ØÈËÔ±¡£
4¡¢¸ú×ÙÏîÄ¿½ø¶È£¬Ð­µ÷ÏîÄ¿×é³ÉÔ±Ö®¼äµÄºÏ ......

java×Ö·û±àÂëÔ­ÀídzÎö

±¾ÖÜÓöµ½Ò»¸öjavaÂÒÂëÎÊÌ⣬ÓÚÊǶÔjavaµÄ±àÂëÎÊÌâ×öÁËһЩʵÑéºÍÁ˽⡣¼òµ¥·ÖÎöÈçÏ£º
ÏÈ¿´ÏÂÈçÏ´úÂ룺
import
java.io.UnsupportedEncodingException;
public
class
CharSetTest {

public
static
void
main(String[] args)
throws
UnsupportedEncodingException {
String test =
"
ÀºÇò
" ......

XPϵͳÖÐJava»·¾³±äÁ¿ÅäÖÃ

Ò»¡¢ÅäÖû·¾³±äÁ¿:
ÎҵĵçÄÔ->ÊôÐÔ->¸ß¼¶->»·¾³±äÁ¿->ϵͳ±äÁ¿ÖÐÌí¼ÓÒÔÏ»·¾³±äÁ¿£º
JAVA_HOME=D:\Program Files\Java\jdk1.6.0_20
JavaµÄ°²×°Ä¿Â¼£¬µ±Java°²×°Ä¿Â¼¸Ä±äʱֻÐè¸Ä±ä´Ë±äÁ¿¼´¿É£¬×öµ½Ò»¸ÄÈ«¸Ä£¬Í¬Ê±µÚÈý·½Èí¼þ»áÒýÓÃÔ¼¶¨ºÃµÄJAVA_HOME±äÁ¿£¬²»È»£¬Äã²»ÄÜÕý³£Ê¹ÓøÃÈí¼þ
PATH=..........;%JAV ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ