Modal in MDI and its JInternalFrame Java

0

Modal in MDI and its JInternalFrame Java

Hi, I need to know how to handle modal in a Java MDI, what I would like to do is to handle the window blocking in the following way:

  

Case 1:

JInternalFrame - > JInternalFrame

  

Case 2:

MDI - > JFrame

I have a case that I have to search for, say, data from other tables and pass it to the one I call, but if the cursor clicks outside the margins of the second window it does not hide until I select a data or Close the window manually.

    
asked by JhonnKratos 22.11.2017 в 22:52
source

1 answer

0

It's easy to make a modal window in java, I'll show you an example

final JDialog frame = new JDialog(parentFrame, frameTitle, true);
frame.getContentPane().add(panel);
frame.pack();
frame.setVisible(true);

and in case you need more help I share the following link

answered by 23.11.2017 в 01:15