I want to write an applet that will draw a wide rectangle on which two small rectagles which act as sliders will slide on the wider rectangle as i drag the mouse. I have written the applet for one slider to work perfectly alright i want the other rectangle also to work so can anybody help me please. The code is as follows which is saved in Events1.java.
importjava.awt.*;java.awt.event.*; import java.applet.*; public class Events1 extends Applet implements MouseMotionListener {
int mouseX =100,mouseY=100,mouseX2=496,mouseY2=100; public void init() {