Window size in Java

2

When I open the project in JavaFX on Windows OS, it opens correctly, but when I open the same project in the Mac Retina, it opens with another dimension, the windows are all misaligned and I have to fix it in my hand.

Is there any way to fix this?

Follow the pictures below to show what is happening.

Windows:

Mac:

    
asked by anonymous 18.10.2017 / 21:22

1 answer

1

As you are using an AnchorPane (and apparently only that part of the filter is out of place) I suggest you change the anchoring of the items right to right as I realized that you should have put all in relation to the left plus or less like this:

\>--------|---------|----------|--------------------------------| 

You would have to anchor to the right the part of the filters:

\>--------|---------|----------|                      |--------------------<

How many of the buttons do you have to increase their width to a little more than necessary because the fonts change from system to system.

    
18.10.2017 / 21:48