import java.awt.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.image.BufferedImage; import javax.swing.*; public class DrawingArc extends JPanel { public DrawingArc() { this.setBackground(Color.CYAN); } @Override public void paintComponent(Graphics g) { super.paintComponent(g); g.setColor(Color.PINK); g.fillArc(40, 40, 100, 100, 45, 180); g.setFont(new Font("SansSerif", Font.BOLD, 12)); g.setColor(Color.BLACK); g.drawString("ini adalah arc", 50, 65); Graphics2D g2 = (Graphics2D) g; ...