You mention Frame and Panel which are AWT components so I assume you want to work in the AWT vis–a–vis Swing. Some suggestions:
1 — create a class that extends either Canvas or Panel and override its
paint method to do your drawing
2 — import the java.awt.geom package which gives access to the Arc2D class. You will need the Graphics2D context (g2) to draw/fill your arcs.
3 — consider basing all drawing calculations relative to the center of the drawing surface.
Math.atan2(y1 - y2, x1 - x2) is a convenient way to get the angle of rotation for any pie slice.
4 — it takes a little experimenting to figure out how to use Arc2D; the Arc2D api is a starting point. The java2D tutorial has an example on the
Stroking and Filling Graphics Primitives page.