¹ØÓÚJavaÖÐBorderLayout²¼¾ÖµÄÒ»¸ö¾À½áÎÊÌ⣬Çó½Ì
Õâ¸öÎÊÌâÔÚÓÚ ÔÚFrameÖÐÌí¼Ó×é¼þʱ£¬Ã¿¸ö×é¼þÏÈÉ趨ÁËλÖ㬵«ÊÇÌí¼Óµ½FrameÖкóʼÖÕ»á³öÏÖÎÊÌâ¡£
ÀýÈ磺
class MyGame extends Frame
{
MyGame()
{
Label c[] = new Label[8];
for(i = 0; i<8; i++)
{
c[i] = new Label(“µÄ");
c[i].setLocation(10,i*10+10);
this.add(c[i]);
}
this.setBounds(200,200,400,400);
this.setResizable(false);
this.setVisible(true);
}
public static void main(String args[])
{
new MyGame();
}
}
ÕâÀﰴ˵Ӧ¸øÊÇ»áÌí¼Ó°Ë¸ö “µÄ” ×Öµ½´°¿ÚÖÐ µ«ÊdzöÀ´µÄÈ´Ö»ÓÐÒ»¸ö ¶øÇÒλÖÃÒ²²»¶Ô
Ó¦¸ÃÈçºÎ½â¾öÄØ? Çó½Ì°¡
Ïà¹ØÎĵµ£º
ѧµ½JAVAµÄÃæ¶Ô¶ÔÏ󣬷¢ÏÖÈç´ËÇ¿´ó£¡
ÍòÎï½Ô¶ÔÏó£¬ÍòÎïΪÎÒËùÓã¡
¶ÔJAVA²úÉúÇ¿ÁҵĺøУ¡
µ«¶ÔÓÚSun¹«Ë¾µÄÊÕ¹º£¬JAVA²»Öª»áÈçºÎ£¿
--------------------------------------------------
ÕâµÚһƪÎÄÕ£¬ÊÇÎÒÔÚCSDNµÄ¿ª¶Ë¡£
Ö®ºóÎÒ»á¸üÐÂÎҵIJ©¿Í£¬Ð´ÉÏһЩѧϰ¸ÐÊÜ¡£
Ï£ÍûÄÜÔÚÕâÀïÕÒµ½Ò»Æ¬ÐµÄÌìµØ£¡ ......
½ñÌìÀ´½²Ï¹ØÓÚJavaÒì³£ÎÊÌâ¡£ÆäʵÔÚ¿ª·¢¹ý³ÌÖÐJavaµÄÒì³£´¦Àí²¢Ã»ÓÐÏëÏóÖеÄÄÇô¼òµ¥£¬¼òµ¥µÄ˵Java²»×ãÖ®´¦£¬ÄÇôÒì³£´¦Àí»úÖÆÒ²¿ÉÒÔËãÒ»¸ö£¨¸öÈ˹۵㣩¡£ÎªÊ²Ã´ÎÒ»áÕâÑùÈÏΪÄØ£¿ÏÂÃæÎÒ½«ÔÚ¿ª·¢¹ý³ÌÖÐÓÃ×Ô¼ºµÄ˼ά·½Ê½À´½âÊÍÏÂÒ쳣ʹÓá£
JavaµÄÒì³£´óÖ·ÖΪ3Àࣺ
ExceptionÀà¡¢RuntimeExceptionÀàºÍErrorÀ࣬£¨¾ßÌåÒâË ......
×î½üÓÐÍøÓÑÎÊ£ºÈçºÎÈÃÒ»¸öJARÎļþËæJVMÆô¶¯Ê±ÔËÐУ¿java.exeÊDz»Äܹ»×ö³ÉÕâÑùµÄ£¬²»¹ý¿ÉÒÔ×Ô¼º¶¨ÖÆjava.exe£¬¶¨ÖÆjava.exeÔÚÈçÏÂÇé¿öÓÐÓãº
1.²»Ïë³ÌÐòµÄ½ø³ÌÃûÏÔʾΪjava.exe
2.Ï£Íû³ÌÐòË«»÷¾Í¿ÉÒÔÔËÐС£
ÏÂÃæÊÇÒ»¶ÎʾÀý´úÂ룺
// JVM_CPP.cpp : Defines the entry point for the console application.
//
#include ......
±¾ÆªÄÚÈÝϵͳJAVA»ù´¡ÖªÊ¶½éÉÜ£¬ÊÊÓÃÓÚ³õѧÕߺ͸´Ï°µÄÅóÓÑÔĶÁ¡£×÷Ϊ±¾ÈË£¬Ë価Á¿²éÔĸ÷ÖÖÊé¼®£¬µ«ÊÇÈÔÄѱÜÃâ¸÷ÖÖ´íÎóºÍ²»µ±£¬»¹Çë¿´¹ý²¢·¢ÏÖÆäÖдíÎóµÄÅóÓÑÖ¸Õý¡£
Ò».¼ò½é
1.Green TeamС×éÓëJAVA
&nb ......