Programming Resources
For Fun and Learning
Charles Cusack
Computer Science
Hope College
main

Python
C++

JAVA


PHP
SQL
Assignments

SamplePicture


PictureApplet.java

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

/**
 * PictureApplet draws a picture in an applet
 */
public class PictureApplet extends JApplet
{
    /**
     * In applets, the init method is where things get set up.
     * This is the only method that is needed if it is run as
     * an applet in a webpage.
     */
    public void init() 
    {
	   add(new PicturePanel());
    }

    /**
     * The default constructor.  In this case, we don't want it
     * to do anything.
     */
    public PictureApplet() {
    }
}