setvisible method in java swing hangs system

后端 未结 4 1883
后悔当初
后悔当初 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条回答
  •  太阳男子
    2021-01-18 17:30

    camickr gives you correct answer. I want to add that you may not modify the UI outside the Event Dispatch Thread (as you do in #doInBackground), Swing is single threaded so violating this rule could lead to very tricky bugs and strange things in your UI.

提交回复
热议问题