If you want that frame to be the owner of the JDialog then what you would do is this:
I don't recall ever seeing code which adds a dialog to a frame, and it doesn't make sense to do that because the dialog isn't part of the frame. So I would just leave line 55 out.
posted 1 year ago
Thanks for the reply. That is actually where I started out but the dialog would not display. After I added that then I got it to display but with that exception. Apparently in the mean time I must have unknowingly fixed something else that was the real cause of it not displaying. After removing that as you suggested, it still displays but with out the exception.
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad: