Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import java.applet.*;
- public class A14k_Kreis_mit_Mittelpunkt_und_Radius extends Applet{
- public class Kreis {
- int x, y, r;
- public Kreis (int x1, int y1, int r1){
- x=x1;
- y=y1;
- r=r1;
- }
- public void zeichnedich (Graphics stift){
- stift.drawOval(x-r, y-r, 2*r, 2*r);
- }
- }
- public void paint(Graphics stift){
- Kreis K1 = new Kreis(100, 150, 50);
- K1.zeichnedich(stift);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement