JButton not visible until mouseover

前端 未结 4 507
感情败类
感情败类 2021-01-13 21:18

I\'m creating a gui for my project. When the gui is first loaded only background is visible, so buttons are not visible, but when mouse over them, they are visible. What is

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 21:46

    Just make sure that the setvisibility of all other panels except the one which you wish to display is set to false.I too had a similar problem but i had forgotten to set visibility of one of the 10 panels to false.Problem resolved once i set it to false.

提交回复
热议问题