Set window size

Comments

3 comments posted
This is a beautiful web page.

This is a beautiful web page. It takes seconds to read and it answers the question immediately. We should be making more pages like this.

----
Wood sculpture gallery (Nik Sergeev)

Posted by Evgeni Sergeev (not verified) on Sat, 05/23/2009 - 22:37
I'd like to add that I once I

I'd like to add that I once I tried that, there was an issue inverse-binding to the Scene's width. The error reported was that it has "script-only access". The exact error was:
... width has script only (default) bind access in javafx.scene.Scene ...

But I wanted various dimensions to depend on the size of the scene. So the solution was as follows.

public var full_width:Number;
public var full_height:Number;
 
class SizeBoundingScene extends Scene {
    public var w = bind width on replace {
            //println("Now w {w}");
            full_width = w;
        };
    public var h = bind height on replace {
            //println("Now h {h}");
            full_height = h;
        };
}

Now I can bind to full_width and full_height.

Posted by Evgeni Sergeev (not verified) on Sat, 05/23/2009 - 23:15
Hello! Thank you for your

Hello! Thank you for your post.

Following on this subject, would you, by any chance, know how to set a minimum size to the stage / scene when the resizable property is set to true?
I have tried to implement functions in minWidth of panels contained in the scene by returning a fixed value (for example 800.0) but that has no effect whatsoever.

thank you for your reply!

Jer

Posted by Jérôme JADOULLE (not verified) on Tue, 09/01/2009 - 06:38