Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import java.awt.Frame;
  2. import java.awt.Graphics;
  3. import java.awt.Graphics2D;
  4. import java.awt.geom.CubicCurve2D;
  5. import java.awt.geom.QuadCurve2D;
  6.  
  7. import javafx.scene.shape.*;
  8. public class Arch extends Frame
  9. {
  10. public Arch()
  11. {
  12. setTitle("Arcs Drawing");
  13. setSize(1000, 1000);
  14. setVisible(true);
  15. }
  16.  
  17. public void paint(Graphics g)
  18. {
  19. g.drawArc(60, 100, 600, 1300, 0, 180);
  20.  
  21. }
  22.  
  23. public static void main(String args[])
  24. {
  25. new Arch();
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement