±êÌ⣺ΪʲôͬʱÔÚˮƽ´¹Ö±·½ÏòÍ϶¯Ê±»áÖØ»­Á½´Î£¿Java¾¿¾¹ÊÇ°´ÔõôµÄ·½Ê½»­´°Ìå ...
Ö»¿´Â¥Ö÷
ruihua
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Íþ¡¡Íû£º1
Ìû¡¡×Ó£º235
ר¼Ò·Ö£º0
×¢¡¡²á£º2006-2-21
 ÎÊÌâµãÊý£º0 »Ø¸´´ÎÊý£º6 
ΪʲôͬʱÔÚˮƽ´¹Ö±·½ÏòÍ϶¯Ê±»áÖØ»­Á½´Î£¿Java¾¿¾¹ÊÇ°´ÔõôµÄ·½Ê½»­´°ÌåµÄ?
import java.awt.*;
public class Demo extends Frame
{
static int i=0;
Demo()
{
}
public void paint(Graphics g)
{
g.drawString("Drawing in Frame",30,80);
System.out.println("Test :"+i++);
}
}
class mainApp
{
public static void main(String[] args)
{
Demo fm=new Demo();
fm.setSize(200,200);
fm.setVisible(true);
}
}
ËÑË÷¸ü¶àÏà¹ØÖ÷ÌâµÄÌû×Ó: Í϶¯¡¡Java¡¡´°Ì塡ʱ»á¡¡Demo¡¡
2006-08-23 17:27
ÎÞÀíÈ¡ÄÖ
Rank: 9Rank: 9Rank: 9
µÈ¡¡¼¶£º¹ó±ö
Íþ¡¡Íû£º53
Ìû¡¡×Ó£º4264
ר¼Ò·Ö£º0
×¢¡¡²á£º2006-7-26
µÃ·Ö:0 
Ôõô¿´³öÀ´ÖØ»­Á½´ÎµÄ?

win32»ã±à
²¡¶¾ ¼ÓÃÜ
Ä¿Ç°ÐËȤËùÔÚ
2006-08-23 22:32
ruihua
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Íþ¡¡Íû£º1
Ìû¡¡×Ó£º235
ר¼Ò·Ö£º0
×¢¡¡²á£º2006-2-21
µÃ·Ö:0 

Ö´ÐÐÁËSystem.out.println("Test :"+i++);Óï¾äÁ½¾ä


2006-08-24 08:49
ÎÞÀíÈ¡ÄÖ
Rank: 9Rank: 9Rank: 9
µÈ¡¡¼¶£º¹ó±ö
Íþ¡¡Íû£º53
Ìû¡¡×Ó£º4264
ר¼Ò·Ö£º0
×¢¡¡²á£º2006-7-26
µÃ·Ö:0 
ÿ´ÎÒƶ¯¶¼ÐèÒªÖØ»­°¡!

win32»ã±à
²¡¶¾ ¼ÓÃÜ
Ä¿Ç°ÐËȤËùÔÚ
2006-08-24 09:21
ǧÀï±ù·â
Rank: 16Rank: 16Rank: 16Rank: 16
À´¡¡×Ô£º¹àˮ֮Íõ
µÈ¡¡¼¶£º°æÖ÷
Íþ¡¡Íû£º155
Ìû¡¡×Ó£º28477
ר¼Ò·Ö£º59
×¢¡¡²á£º2006-2-26
µÃ·Ö:0 
Äãÿ´Î¸Ä±ä´°¿Ú״̬Ëü¶¼»áÖØ»­µÄ,ÖØ»­Ê¼þ¿ÉÒÔÓÉJVM×Ô¼ºµ÷ÓÃ,Ò²¿ÉÒÔÄãͨ¹ýrepaint()·½·¨À´µ÷ÓÃ
Äã¸Ä±ä´°¿Ú״̬µÄ»°,ÒªÖØ»­¶àÉÙ´ÎÊDz»Ò»¶¨µÄ.Õâ¸öÈ«ÓÉJVMÀ´¾ö¶¨

¿Éϧ²»ÊÇÄã,ÅãÎÒµ½×îºó
2006-08-24 09:47
ǧÄê±ù·â
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º174
ר¼Ò·Ö£º0
×¢¡¡²á£º2006-7-20
µÃ·Ö:0 
ÒÔÏÂÊÇÒýÓÃǧÀï±ù·âÔÚ2006-8-24 9:47:26µÄ·¢ÑÔ£º
Äãÿ´Î¸Ä±ä´°¿Ú״̬Ëü¶¼»áÖØ»­µÄ,ÖØ»­Ê¼þ¿ÉÒÔÓÉJVM×Ô¼ºµ÷ÓÃ,Ò²¿ÉÒÔÄãͨ¹ýrepaint()·½·¨À´µ÷ÓÃ
Äã¸Ä±ä´°¿Ú״̬µÄ»°,ÒªÖØ»­¶àÉÙ´ÎÊDz»Ò»¶¨µÄ.Õâ¸öÈ«ÓÉJVMÀ´¾ö¶¨

ÄǾͲ»»á³öʲôÎÊÌâÂð£¿


ÊÇʲô±ù·âÁËÄãµÄÐÄ£¿ÊÇÄãµÄÑÛÀá¡£
2006-08-24 11:36
ǧÀï±ù·â
Rank: 16Rank: 16Rank: 16Rank: 16
À´¡¡×Ô£º¹àˮ֮Íõ
µÈ¡¡¼¶£º°æÖ÷
Íþ¡¡Íû£º155
Ìû¡¡×Ó£º28477
ר¼Ò·Ö£º59
×¢¡¡²á£º2006-2-26
µÃ·Ö:0 
µ±È»²»»á³öÎÊÌâ,²»µ«JAVAÊÇÕâÑù,Èκδ°¿Ú³ÌÐò¶¼ÊÇÕâÑùµÄ»úÖÆ°¡

¿Éϧ²»ÊÇÄã,ÅãÎÒµ½×îºó
2006-08-24 13:58



²ÎÓëÌÖÂÛÇëÒƲ½Ô­ÍøÕ¾Ìù×Ó£ºhttps://bbs.bccn.net/thread-85747-1-1.html




¹ØÓÚÎÒÃÇ | ¹ã¸æºÏ×÷ | ±à³ÌÖйú | Çå³ýCookies | TOP | ÊÖ»ú°æ

±à³ÌÖйú °æȨËùÓУ¬²¢±£ÁôËùÓÐȨÀû¡£
Powered by Discuz, Processed in 0.117775 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved