This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To make slider resize rectangle and to move pictures

 
maja neskovic
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
maja neskovic
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic