swing - Java GUI app frame doesn't display correctly when launched? -


i have made tictactoe app using java swing library. ever since i've added menu, wouldn't launch expected. mean, functionality fine sometimes display 1 of 3 undesirable methods have in image when launch it. however, once maximize , minimize frame, display in desired manner.

kindly me fix this.

enter image description here

you adding components frame once visible. call frame.setvisible(true); after have added components or have revalidate container. once container visible , layed out, have call validate/revalidate if add or remove components.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -