Java GUI shows blank until resize

前端 未结 2 1806
伪装坚强ぢ
伪装坚强ぢ 2021-01-16 05:24

I have written a java gui code for many options available on it. the gui is also set visible true but it doesn\'t show until I pick its border and drag them to resize the gu

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-16 05:46

    frame.setVisible(true);
    

    This Statement should be invoked in the last of adding other components to the Frame.

提交回复
热议问题