When I run my gui, I have to resize the window for everything to show up. Does someone know what the problem is?
Call pack() on your JFrame, after adding all your components and before calling setVisible(true).
When you create the frame call the setSize()
method on the frame to set the initial starting size.
setVisible(true);
after you have added all desired JComponents to your JFrame helped for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With