SolidPaint f = new SolidPaint(); f.setTitle("SolidPaint v1.0"); f.setSize(200, 200); f.center(); f.setVisible(true);
Graphics2D g2 = (Graphics2D)g; Arc2D pie = new Arc2D.Float(0, 50, 150, 150, -30, 90, Arc2D.PIE); g2.setPaint(Color.blue); g2.fill(pie);