java - JavaFX window sizing -


My app looks different on the same OS This is Windows 7 rich interface:

Enter image details here

and Windows 7 Regular Interface:

Enter image details here

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

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -