• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to detect WHILE a pane is being resized

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic