Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Zoom geometry using JSlider

 
Hui Zhao
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to design a JSlider to zoom in or out polygons.What I expected is the old drawing would be replaced the new drawing.
Actually I use repaint() method, however I found the screen was mess up.
The new and old pictures coexisted when I fired the event.

What is the reason it could be?
I am sorry my code is too complex to make it as an example.

Thanks
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> I am sorry my code is too complex to make it as an example.

guess: you're not using getValueIsAdjusting(), but guesses rarely solve problems,
so here's a basic program - add your code to reproduce the problem,
then post back so we can see what you're doing.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic