Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import java.applet.*;
- public class ZbiorFigurGeometrycznych extends Applet {
- final int a = 20;
- final int b = 40;
- final int r = 30;
- public void init() {
- }
- public void paint(Graphics g) {
- g.drawRect(20, 20, a, a);
- g.drawRect(50, 20, a, b);
- g.drawOval(80, 20, r, r);
- }
- }
- <html>
- <head>
- <title>ZbiorFigurGeometrycznych</title>
- </head>
- <body>
- <center>
- <applet
- code = "ZbiorFigurGeometrycznych<.class"
- width = "640"
- height = "200">
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement