import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.event.ActionEvent; public class Ringid3 extends Applet implements AdjustmentListener{ int nr=100; int r=0; Scrollbar sb=new Scrollbar( Scrollbar.VERTICAL, 3, 2, 2, 20); TextField tf=new TextField("100"); public Ringid3(){ add(tf); setLayout(new BorderLayout()); add("West", sb); sb.addAdjustmentListener(this); } public void adjustmentValueChanged(AdjustmentEvent e){ nr=sb.getValue(); //nr=e.getValue(); repaint(); } public void paint(Graphics g){ r=0; while(r