File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Shapes with slider Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Shapes with slider" Watch "Shapes with slider" New topic
Author

Shapes with slider

Ahmed Fayaz
Greenhorn

Joined: May 22, 2009
Posts: 3
Can some one tell me how I am going to do the following .
I want use one JSlider to do three different tasks
I have created a rectangle a circle and a triangle.
I want circle to be zoomed and triangle to be moved horizontally and rectangle to be moved vertially.
Each one of this have a corresponding bustton and each will be activated when button is clicked.

The file that I am working is attached please help.
Ahmed Fayaz
Greenhorn

Joined: May 22, 2009
Posts: 3
[/code]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
too much to wade through for me, so here's a simple demo of changing the size of the circle and the positions of the rectangle and triangle
(sizes of rectangle and triangle not changed, but easy enough to add)

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19784
    
  20

Moving to the Swing forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Shapes with slider