private SelfContainedPanel myPanel; // panel to draw an oval
// set up GUI and mouse motion event handlers for application window
public CustomFrame()
{
myPanel = new SelfContainedPanel(); // create self contained panel
myPanel.setBackground( Color.YELLOW ); // set background to yellow
setLayout( new FlowLayout() ); // set frame layout
add( myPanel ); // add self contained panel to frame