开发者

How to stop JDialog from hiding

开发者 https://www.devze.com 2023-04-12 13:47 出处:网络
I have the below class: public class MyAlertDialogFragment extends Dial开发者_运维知识库ogFragment

I have the below class:

 public class MyAlertDialogFragment extends Dial开发者_运维知识库ogFragment
 {
   ..
 }

Which holds JDialog with one button component. The Dialog works, but hides when I press the button. Do anyone knows how to stop the dialog from hiding?


The routine the button executes must be firing the dialog dispose call. See if you can find dispose(); and comment it out.


Have you tried to call setCancelable(false) on your objetc?

Would be better if you post more code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号