
// Doodle.java
// Andrew Davison, January 2018, ad@fivedots.coe.psu.ac.th

// Illustrates the use of a separate JPanel as a drawing canvas.

import javax.swing.*;
import java.awt.*;


public class Doodle extends JFrame 
{
   public Doodle()
   {
     super("Doodle");
	 Container c = getContentPane();
	 c.add( new DoodlePanel() );

     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     pack();  
     setLocationRelativeTo(null);  // center the window 
     setVisible(true);
   }  // end of Doodle()


   // ---------------------------------------------------

   public static void main(String args[])
   {  new Doodle(); }

} // end of Doodle

