I got some applications that launch a dialog for reporting purposes.
In there I load some large pictures and/or create some large arrays.
I noticed that every time I do so my memory usage grows by some Mb's,
finally pushing me out.
I tried .dispose(); but that doesn't help.
public class Xdialog extends JDialog
/// builds a heavy GUI,
/// has a button OK,
/// NO setVisible.
public void display()
setVisible(); // Here the Launcher switches it on.
Xdialog x = new Xdialog(..........................);
x.dispose(); // Does not release the memory used.
x = null; // Same ...
What did I do wrong?
JDialog xyz = new