import javax.swing.*;  
import java.awt.*;
	
public class DrawingPanel extends JPanel {

	/* A JPanel is something we can draw on, 
	 * it can also contain other components, buttons, listboxes etc 
	 */

	public DrawingPanel(){
		setBackground(Color.black);
	}
	
	/**
	 * overridden method of JPanel, 
	 * Called each time the screen needs to be repainted 
	 * @param g is the pen used to repaint the screen 
	 */
	public void paintComponent(Graphics g){
		super.paintComponent(g);
		g.setColor(Color.white);
		g.fillOval(100,100, 10, 10);
	}
}
