I’m trying to make a JDialog in java desktop application and I don’t want the user to be able to click on any other frames until they closes the JDialog. It’s more like a JFileChooser. When JFileChooser is called, user must select or cancel before they can have access on other frames. I have tried to use alwaysOnTop but user can still move to other frame. How can I do this?
I’m trying to make a JDialog in java desktop application and I don’t want
Share
Make your JDialog a modal dialog.
Better explained here: How to Use Modality in Dialogs?