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!

Resize component

1020069Aug 25 2013 — edited Aug 27 2013

I'm working on a component resize from several weeks. I'm writing here because I don't have idea how to solve this issue.

I created example application which holds several TabPanes into one big BorderPane. I want to resize the size of the component using mouse drag and drop. The TabPane which is located at the center of the border can be resized with mouse drag and drop successfully. Now comes the big problem. In JavaFX 8 the component situated on the right side and below the resized component are pushed behind the visible area of the stage. I want to shrink them automatically or expand them when I resize the component.

Simply download the example and build it with JavaFX 8. When the application is loaded move the cursor at the border of the center stage and drag it with the mouse. The near components will be pushed. I would like to prevent moving the near components. I would like to shrink their size.

Can you help me with this big issue?

Example code: http://www.4shared.com/zip/VPrDH8cp/ResizeTest.html

Ref javafx 2 - Resize component - Stack Overflow

Reduced code:

http://rapidshare.com/files/2488438716/ResizeTest2.zip

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2013
Added on Aug 25 2013
8 comments
703 views