Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我扩展JDialog并使其成为模态等。
JDialog
在用户选择“确定”按钮或“取消”并且对话框已被释放之前,如何使其不从对话框中返回?
我不想添加线程并让它旋转。我只是希望它等到用户处置。
You can override the setVisible() function, and check the status before you allow setVisible(false);.
setVisible()
setVisible(false);