making a modal JInternalFrame

2019-05-28 21:50发布

问题:

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?

回答1:

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

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