import java.applet.Applet; import java.awt.*; import java.awt.event.*; // Muuda joonistatavate ringide arvu kerimisribaga public class Ringid2 extends Applet implements AdjustmentListener{ Scrollbar sb=new Scrollbar(Scrollbar.VERTICAL, 3, 1, 0, 10); public Ringid2(){ setLayout(new BorderLayout()); add(sb, BorderLayout.WEST); sb.addAdjustmentListener(this); } public void paint(Graphics g){ int keskx=getWidth()/2; int kesky=getHeight()/2; int r=Math.min(keskx, kesky)*3/4; for(int i=0; i