setvisible method in java swing hangs system

后端 未结 4 1913
后悔当初
后悔当初 2021-01-18 17:20

I have banking gui application that I am currently working on and there seems to be a problem with the setvisible method for my jdialog. After the user has withdrawn a valid

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-18 17:31

    You are displaying a modal dialog so the background code can't execute until the dialog is closed.

    Add a System.out.println(...) statement after the setVisible and you will see it never executes.

提交回复
热议问题