static void disposeInternalFrame(final JInternalFrame f) { if (f != null) swing { f.dispose(); } }