1
Can anyone explain to me how I change the layout of my application windows?
I was building the app and testing by the method main
normally, but since it took me a long time to wait to connect to the server and still have to log in every time I wanted to test a function, I created a method main
test, and when I did this I had a surprise: the layout was totally different... I don’t want to tidy up, since it’s just start by the main that gets normal, I just want to know if it has how to choose between other models.
The difference is in the images below:
This is the original
And that’s how it turned out:
Remembering that this form will only work if it is done before the EDT is invoked (that is, before the application opens). If you do it later, JVM will choose LAF metal, because it is cross Plataform. To change at runtime, this is how I show in this answer
– user28595
Type, if it is the main method responsible for starting the frame, doing this loop works.
– Giuliana Bezerra
That’s what I said, only in other words :)
– user28595
Yes, of course. It’s because the term EDT is more technical, I just wanted to make the comment :P more accessible
– Giuliana Bezerra
Thank you Giuliana, it worked perfectly
– Roberto Gomes