A
A
Anton @ Lyalin2016-10-06 13:34:22
Java
Anton @ Lyalin, 2016-10-06 13:34:22

Why in Idea the form is a chunk???

I created a form, I launch it, and sometimes instead of a full-fledged window, a piece ... If I restart it several times, then a full-fledged window finally starts ... Idea development environment, java language. Has anyone come across something similar??39afbe7fffc64ebbb8cdf49688923510.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Kornachev, 2016-10-06
@toxa_1995

do you setVisible(true) for the frame before adding elements or after?
If TO, then the situation is possible when the window was displayed before the elements were added and the sizes were calculated incorrectly (minimal, since there was nothing in the frame at the time of calculating the sizes).
It's also better to specify the preferred (minimum) window sizes explicitly.
And it is better not to use Swing.

A
aol-nnov, 2016-10-06
@aol-nnov

what a piece... am I watching?!
//nothing is clear - daub

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question