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:

enter image description here

i need simple code create slider.

thanks time..

jslider size = new jslider(jslider.horizontal, 0, 250, 100); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -