Remove Top-Level Container on Runtime

后端 未结 5 1310
深忆病人
深忆病人 2020-11-21 13:46

Unfortunately, it looks like this recently closed question was not well understood. Here is the typical output:

run:
    Trying to Remove JDialog
    Remove          


        
5条回答
  •  闹比i
    闹比i (楼主)
    2020-11-21 14:13

    There is a timeout defined in the AppContext before some resources will be released finally. This is set to something like 5 seconds. Thus if you wait for another five seconds also the context will dispose the (last) reference to your dialog.

    wins = null;
    Thread.sleep(5000);
    

提交回复
热议问题