Java Applet Viewer

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.