制作模态 JInternalFrame

2022-01-17 00:00:00 modal-dialog java swing jinternalframe

我需要在 MDI JFrame 中从用户那里获取大量数据(文件选择、文本、日期等).
我需要作为 JInternalFrame 的输入表单是模态的.
如何制作 JInternalFrame 模态框?

I need to get lots of data (file select , text, date ,...) from user in a MDI JFrame.
I need the input form that is a JInternalFrame be modal.
How Can I make a JInternalFrame modal?

推荐答案

根据我的经验,我从来没有设法使 JInternalFrame 模态化,我认为这不可能开箱即用.

From my experience, I have never managed to make JInternalFrame modal and don't think that is possible out of the box.

请参阅 这篇关于 JInternalFrame 使它们成为模态的(感谢 Steve Webb).

See this great article on an extension to JInternalFrame to make them modal (thanks to Steve Webb).

相关文章