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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -