Import java.awt.*;
Import java.applet.*;
public class C4_1 extends Applet
{
public void Paint (Graphics g)
{
g.DrawString ("Second applet", 25,25);
G.draw3drect (25,10,100,20,true);
}
}//<applet Code=c4_1.class width=200 height=200></applet>
The results are as follows:
650) this.width=650; "src=" http://img.blog.csdn.net/20150724022340462 "alt=" here write a picture describing "title=" "/>
Operation Method:
650) this.width=650; "src=" http://img.blog.csdn.net/20150724022515782 "alt=" here write a picture describing "title=" "/>
Notes:
G.draw3drect (25,10,100,20,true);
Where 25 represents X coordinate, 10 for Y coordinate, 100 for box width, 20 for box height, not window size Oh, Pro!!!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
This article is from the "Sanghaidan blog column" blog, please be sure to keep this source http://10602803.blog.51cto.com/10592803/1683071
Java Applet Viewer