posted 7 years ago
I am trying to write a non-modal JDialog and getting this exception:
java.lang.IllegalArgumentException: adding a window to a container
However, the JDialog seems to display just fine (I have not yet added any UI fields to it yet). This JDialog is launched from my JFrame menu class:
The exception is on line 55 of the JDialog class:
I assume this has something to do with the way I am providing the JFrame object. Can someone help me out with this? TIA.