Created
February 22, 2020 19:13
-
-
Save MinSomai/0709b2c05fd6fc09f680dd637a2a1f9e to your computer and use it in GitHub Desktop.
Oval13.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package hw; | |
| import java.awt.*; | |
| import java.applet.*; | |
| public class Oval13 extends Applet { | |
| public void init() { | |
| setBackground(Color.YELLOW); | |
| setForeground(Color.GREEN); | |
| } | |
| public void paint(Graphics g) { | |
| g.drawOval(10,10,50,50); | |
| g.fillOval(100,10,75,50); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment