I was wondering if it was possible to disable all other action when a JFrame is opened in Java.
Just like this?
Is there easy code for this?
I was wondering if it was possible to disable all other action when a JFrame is opened in Java.
Just like this?
Is there easy code for this?
This has been asked many times and the answer is always the same: use a modal JDialog or JOptionPane (which is a version of a modal JDialog), not another JFrame.
For example, please check out mKorbel's answer here.