'Disproportionality between JFrame within the IDE and the same running

My problem is not so big, but it is annoying.

See my JFrame within my IDE (Netbeans 12.6):

Frame within IDE

(Pay attention to the distance of the text fields)

Now, see the same frame running:

Frame running

Do you see the difference? This is too uncomfortable.

What do I do to make the distance of the elements equal in my running frame?

PS: the frame is set as non-resizable (maybe this info is useful).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source