Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Undecorated stage flickers

Pawel.Z.Feb 25 2014

Hi,

I'm working on a JavaFX application and recently I ran into a problem with resizing a stage. I have an undecorated stage (so it does not have a native "window"). I manage to implement the most important facilities such as MIN, MAX, CLOSE, dragging a window etc. I also have an implementation for resizing the stage. Unfortunately when I'm resizing the window it starts flickering. It's a really vexing problem, especially when the window is quite big. I implemented window resizing by adding a set of mouse handlers (OnMouseMoved, OnMousePressed, OnMouseDragged etc.) to the stage and working out a new size/location for the stage.

Does anyone know how I could make my window resizable and also don't get a flickering effect? Maybe (or rather certainly) someone else encountered a similar problem and knows how to sort it out.

Any help would be greatly appreciated :-)

My OS: Windows 7, Java: 1.7.0_51 x64.

Regards

Pawel

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2014
Added on Feb 25 2014
0 comments
556 views