B4J Question Resizing Anchorpane

ValDog

Active Member
Licensed User
Longtime User
I'm using Scene Builder to edit the dialog from the AsynStreamsObject Example program. I've removed some of the elements and want to downsize the dialog itself. I can do so in Scene Builder, but when I execute the example program the dialog still displays in its original size. I'm obviously missing something basic. Help?
 

stevel05

Expert
Licensed User
Longtime User
Can you zip and upload your project?
 
Upvote 0

ValDog

Active Member
Licensed User
Longtime User
stevel05, Here's the project...
 

Attachments

  • AsyncStreamsObject-B4J-Test.zip
    52.2 KB · Views: 228
Upvote 0

stevel05

Expert
Licensed User
Longtime User
The objects are on the AnchorPane which will take the size of the window as definrd by #MainFormWidth and #MainFormHeight, you need to add a sub pane and move the objects to that (select the objects then choose arrange / Wrap in / Pane in the Scenebuilder menu). You will then be able to size and move the pane within the window. Unless that is all you want in the window, in which case you can size it using #MainFormWidth and #MainFormHeight.
 
Last edited:
Upvote 0

ValDog

Active Member
Licensed User
Longtime User
Thank you! I guess an alternative is to change the values of MainFormWidth and MainFormHeight - which I didn't even notice until you replied.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Yes, I had edited my post to say that as you replied.
 
Upvote 0
Top