java - JavaFX window sizing -
My app looks different on the same OS This is Windows 7
rich interface:
and Windows 7
Regular Interface:
The only thing that annoys me is shaping up, it's 640x445
in FxML, but it's widespread in Windows 7. How can I avoid this? What is a way to do TextArea
fullscreen or something else?
You can use the following code when you start the phase to resize your size (I Believe you javafx-2?)
// stage.setResizable (true); Screen screen = Screen.getPrimary (); Rectangle 2d border = screen.jetvisualband (); Stage.setX (bounds.getMinX ()); Stage.setY (bounds.getMinY ()); Stage.setWidth (bounds.getWidth ()); Stage.setHeight (bounds.getHeight ());
Or you can use fullscreen mode:
stage.setFullScreen (true);
Comments
Post a Comment