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

how to detect WHILE a pane is being resized

 
Carl Bernardi
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if anyone has ideas on how to detect WHILE a pane is being resized. Basically I have multiple threads drawing on the pane and would like the threads to stop while the pane is being resized. When I scroll the inside of the pane I am able to stop all threads by using a combination of setOnMouseDragged, setOnMousePressed and setOnMouseReleased and setting a boolean to true or false. Works great! Appreciated any examples.

Thanks.
 
Carl Bernardi
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved! Whenever there is a change in the width or height property it turns a boolean to true. The threads attempting to draw pause while the boolean is true and then turn the boolean back to false after about 100ms allowing them to continue drawing.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic