Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.applet.*;
- import java.awt.*;
- public class Ovalpar extends Applet
- {
- int w,h;
- public void init()
- {
- setBackground(Color.cyan);
- setForeground(Color.red);
- }
- public void start()
- {
- w = Integer.valueOf(getParameter("OvalWidth"));
- h = Integer.valueOf(getParameter("OvalHeight"));
- }
- public void paint(Graphics g)
- {
- g.drawOval(50,20,w,h);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment