Home
Tutorials
Core Java
Introduction To Java
Java Evolution
Overview of Java
Constants, Variables and Data Types
Java Operators
Branching Statements
Looping Statements
Classes, Objects and Methods
Inheritance
Array, String and Vectors
Java Interfaces
Java Packages
Applet Programming
Graphics Programming
Advanced Java
Java AWT
Java Event Handling
Java File Handling
Java MultiThreading
Java Swing-I
Java Swing-II
Exception Handling
Socket Programming
Java Database
Java RMI
Java Servlets
Java Beans
Programms
Projects
Downloads
Contact
Java Programming
!doctype>
Circles & Ellipses in Advance Java Graphics Programming
/* =========================================================== File Name : Ellipses.java WebSite : http://javaproglang.blogspot.in/ Facebook : https://www.facebook.com/AdvanceJavaProgramming Created By : Bintu Chaudhary =========================================================== */ import java.awt.*; import java.applet.*; /*
*/ public class Ellipses extends Applet { public void paint(Graphics g) { g.drawOval(10,10,60,50); g.fillOval(100,10,75,50); g.drawOval(190,10,90,30); g.fillOval(70,90,140,100); } }
After this you can comiple your java applet program as shown below:
c:\jdk1.4\bin\javac Ellipses.java
c:\jdk1.4\bin\appletviewer Ellipses.java
"Output of Ellipses.class"
Download Complete Program
-
Read more »
No comments:
Post a Comment
No comments:
Post a Comment