wood burning stoves*
The moose likes JavaFX and the fly likes how to set a minimum pane size - javafx Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "how to set a minimum pane size - javafx" Watch "how to set a minimum pane size - javafx" New topic
Author

how to set a minimum pane size - javafx

Carl Bernardi
Greenhorn

Joined: Jan 15, 2013
Posts: 23
I would like to set a minimum size such as 200x200 so when my pane is resized it cannot be any smaller then the select minimum size. Anyone ideas?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

If setting the minimum width and height didn't work for you, you need to post a SSCCE that we can run and maybe suggest something.


luck, db
There are no new questions, but there may be new answers.
Carl Bernardi
Greenhorn

Joined: Jan 15, 2013
Posts: 23
Not sure what SSCCE is but I guess it means code. I was getting a null error the way I reading some data from a file. Since it was tied to the size of the scene I thought a min size would fix the problem. Turns out I was just reading data at the wrong time. Thanks for the reply however.
Almalyn caguioa
Greenhorn

Joined: Feb 01, 2013
Posts: 8
try this code:
Pane pane = new Pane();
pane.setMinSize(200, 200);
Carl Bernardi
Greenhorn

Joined: Jan 15, 2013
Posts: 23
Thanks for the replies.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to set a minimum pane size - javafx