I noticed that every time I close a JDialog, there is a process that keeps running in the background.
I use JDialog for specific window forms that need the attribute modal to be set to true, as I can't find it in JFrame.
And on JDialog this constant EXIT_ON_CLOSE is not supported.
How can I clear the memory after closing a JDialog? Currently, the constant used is DISPOSE_ON_CLOSE