I
I
Igor2017-03-25 17:44:49
Java
Igor, 2017-03-25 17:44:49

How to change JFrame to JDialog?

There is a main window from it I launch child.
It was required to make child modal.
I changed JFrame to JDialog, it became modal, but stopped drawing its components, that is, it became an empty window.
What should be done to make the window modal and show its components?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2017-03-25
@cawendish

I removed the panel from the dialog, and everything worked.
Can't a JDialog contain a JPanel?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question