eclipse - How to add resizing slider to rectangle shape in java? -
here rectangle shape code:
if(rect){ gphcs.setcolor(color.blue); if(orangeshp) gphcs.setcolor(color.orange); if(greenshp) gphcs.setcolor(color.green); gphcs.fillrect(20,35,100,30); }
i want to add resizing slider in order change size of rectangle.
here sample pic of slider want add:
i need simple code create slider.
thanks time..
jslider size = new jslider(jslider.horizontal, 0, 250, 100);
Comments
Post a Comment