Given task is to draw an Olympic symbol in Java Applet.
Use drawOval() method to draw a circle with x and y coordinates and length and breadth.
Below is the implementation of the above approach:
Note: To run the applet in command line use the following commands
> javac Olympics.java > appletviewer Olympics.html
- Draw a Chessboard in Java Applet
- Draw a Polygon in Java Applet
- Draw a Smiley in Java Applet
- Draw a ellipse and a rectangle in Java Applet
- Java Applet | Draw a line using drawLine() method
- Java Applet Basics
- Java Applet | Digital Stopwatch
- Java Applet | How to display an Analog Clock
- Java Applet | How to display a Digital Clock
- Java Applet | Implementing Flood Fill algorithm
- Java Code for Moving Text | Applet | Thread
- Symbol Table in Compiler
- Java.util.LinkedList.poll(), pollFirst(), pollLast() with examples in Java
- Java.util.Collections.rotate() Method in Java with Examples
- Java lang.Long.lowestOneBit() method in Java with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.