I seem to have a problem with my very simple implementation of a file chooser dialogue that requires me to minimize Netbeans each time in order to get to it, and it gets pre
I'm not sure what your problem actually is (it's probably your Netbeans.... who knows), but have you tried overriding the createDialog
method?
Example:
JFileChooser fc = new JFileChooser() {
@Override
protected JDialog createDialog(Component parent) throws HeadlessException {
// intercept the dialog created by JFileChooser
JDialog dialog = super.createDialog(parent);
dialog.setModal(true); // set modality (or setModalityType)
return dialog;
}
};
This is merely a hack solution, you should not need to do that ordinarily.