applet

Graphics: drawString Method in Java

Submitted by donbermoy on
Today in Java, i will teach you how to create java program that will have the drawString method in creating graphics in applet. The drawString() method, takes as parameters an instance of the String class containing the text to be drawn, and two integer values specifying the coordinates where the text is placed (x and y coordinates in the screen). So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of drawString.java. In the classname, extend a java.applet.Applet to have an applet library. 2.

Create Applet in Java

Submitted by donbermoy on
Today in Java, i will teach you how to create an applet in Java. An applet is a small application that is viewed on the Web using java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of sampleApplet.java. In the classname, extend a JApplet to have an applet library. 2.

Logo Applet in Java

Submitted by donbermoy on
This is a sample logo applet programmed in Java programming language. This project will teach you to create applets with the use of graphical methods such as fillRoundRect, drawString, fillPolygon, and many more. This will enhance your knowledge in Java making applets that can run on browsers and has an html tags. For more inquiries and need programmer for your thesis systems in any kind of

Creating a Simple Java Applet

Submitted by pavel7_7_7 on
In this article you will find information about the creating of simple applet using java.awt. Java applet is a small application created using Java language. The user starts applet from the web-browser and it's executed by the Java Virtual machine. The parameters of the applet are received from the web page and they can be used during the applet execution. We will create an Applet, that takes some information from the menu of choice lists and inputs the result of our choice. The first step to create an applet is to derive our class from Applet class.

Converting Java Applet to Application

Submitted by mehfuza on
Applets are programs which run on web browser and Application means the stand alone program in a computer. In Java we can convert Applets to Application and Application to Applet. Using this idea we can make any program run as either applet or as an application. Following are the steps for converting applets to Application. Step 1: Change init() method's name to the constructor. Java Applets contains init() method which is used for initializing the applet, this method should be changed to constructor for that class.