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.
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
Post a Comment