//IntDemo //Demonstrates the ScrInt class //Andy Harris, 05/00 import java.awt.*; import java.applet.*; import java.awt.event.*; import ScrInt; public class IntDemo extends Applet implements AdjustmentListener{ ScrInt scrRed = new ScrInt(); public void init(){ setLayout(new BorderLayout()); add(scrRed, BorderLayout.WEST); scrRed.addAdjustmentListener(this); } // end init public void adjustmentValueChanged(AdjustmentEvent e){ System.out.println (e.getSource()); } // end adjValChanged } // end class def