package <packageName>

import java.awt.*;
import marimba.persist.*;

public class <CustomWidget> extends <OtherWidget> {
     /**
      * Define public instance variable for each property,
      * plus whatever else your widget class may need.
      */
      // For example:
      public String label;


     /**
      * Get properties of this widget.
      */
     public void getProperties(PropertyList list) {
          super.getProperties(list);
          // add custom properties, such as:
          list.setString("label", label, null);
     }

     /**
      * Set properties of this widget.
      */
     public void setProperties(PropertyList list) {
          super.setProperties(list);
          // add custom properties, such as:
          label = list.getString("label", null);
     }

     /**
      * Override paint() only if your widget draws its own stuff.
      */
     public void paint(Graphics g) {
          //your paint statements
     }

     /**
      * Override handleEvent() only if your widget requires
      * special event handling.
      */
     public boolean handleEvent(Event evt) {
          //your event cases here
          return super.handleEvent(evt);
     }
}

