This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes To make slider resize rectangle and to move pictures Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "To make slider resize rectangle and to move pictures" Watch "To make slider resize rectangle and to move pictures" New topic
Author

To make slider resize rectangle and to move pictures

maja neskovic
Ranch Hand

Joined: Apr 28, 2010
Posts: 134
I have made a slider on DesktopPane and it should influence my drawings on JPanel, everything set up on JApplet. I hope i didn't explained very confusing.

My drawing consists of rectangle which have images on it's left and right side. When I move slider, rectangle should be shrinking and images moving with it to continue being right on it's left and right edge.

Do you have any idea, link or hint how to make this?
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2152
    
    7
Cross posted: http://www.java-forums.org/new-java/29035-make-slider-resize-rectangle-move-pictures.html

Be Forthright When Cross Posting To Other Sites
maja neskovic
Ranch Hand

Joined: Apr 28, 2010
Posts: 134
I really need help for this, that's why I have crossposted. I didn't know about this rules for crossposting, I'll stick to it in the future.

Can you help me with my problem? I just want to make variables (for slider) defined in JApplet to be visible on JPanel (which is on the JApplet), so I could be able to affect shapes and images on my JPanel using sliders.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To make slider resize rectangle and to move pictures
 
Similar Threads
problem drawOval() cant be found.
Newbie - UI Help
To make JLabel move
Error: Cannot Find Symbol
How to move rectangle on canvas