I am using netbeans IDE 6.5 for java programming. I am using a jscrollpane to draw lines using g.drawline(x1,y1,x2,y2). I dragged and dropped the slider component from IDE's control panel.

Could you please guide me in zooming the vertical and horizontal lines. The line should get zoomed as the slider is moved. Any help would be appreciated.

Thanks in advance