刘伯温四肖中特料2:

- “ϵԒ - - У· - VӅ^ɽ·A@^3307(AT)
Fڵλã ӋCӖ >> Ӗ̳ >> Java >> 
JavađócjavaСó ߣӋC࡭    ̳́ԴVӋCӖ    c    •rg2010-12-1

ϴȫ www.wzfng.com Javađó

1.Դ:ӛ±  Hello.java

2.g

3.\

 

óпԛ]publicеԒǑóеκһһjavaԴһpublic

 

1.g

D:\> 1000

D:\1000>javac Hello.java

D:\1000>javac People.java

 

2.

D:\1000>java Hello

D:\1000>java A

 

JavaСó

 

  1. Դ
  2. g
  3. \

 

Сóһjava.applet.AppletԓQ

 

import java.applet.*;

import java.awt.*;

public class boyɂ]mainjava Appletpublicģ ( extends Applet)

public void paint (Graphics g)ļǣboy.java

 

g.setColor(Color.red);  

g.drawString("һ߅һ߅WJava",2,30);

g.setColor(Color.blue);

g.drawString("ҌWúJ",10,50);

 

 

1.g

D:\1000>javac boy.java

 

2.

<applet code=boy.classboy.htmlļ

 height=100 width=300>

</applet>

 

WУ· |Wվ؈D| ϴȫ Copyright 2006-2016 All Rights Reserved VϢԃ޹˾ 䰸/SC̖ICP11070650̖-9 B̩˱BϢg޹˾VӋCWУӖW ٷWַϴȫ www.wzfng.com ˾ַVӅ^ɽ·AWƼ@A@^3307AT