From 0aa7356924ac24ac672801703ac08b96cd627c89 Mon Sep 17 00:00:00 2001 From: SAM <73647831+samhackathon@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:28:18 +0500 Subject: [PATCH] Delete graphics --- graphics | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 graphics diff --git a/graphics b/graphics deleted file mode 100644 index 9dd8391516f..00000000000 --- a/graphics +++ /dev/null @@ -1,26 +0,0 @@ -import java.awt.*; -import javax.swing.JFrame; - -public class DisplayGraphics extends Canvas{ - - public void paint(Graphics g) { - g.drawString("Hello",40,40); - setBackground(Color.WHITE); - g.fillRect(130, 30,100, 80); - g.drawOval(30,130,50, 60); - setForeground(Color.RED); - g.fillOval(130,130,50, 60); - g.drawArc(30, 200, 40,50,90,60); - g.fillArc(30, 130, 40,50,180,40); - - } - public static void main(String[] args) { - DisplayGraphics m=new DisplayGraphics(); - JFrame f=new JFrame(); - f.add(m); - f.setSize(400,400); - //f.setLayout(null); - f.setVisible(true); - } - -}