static JInternalFrame addInternalFrame(final JDesktopPane desktop, fS title, final int x, final int y, final int w, final int h) { ret swing(func -> JInternalFrame { JInternalFrame frame; desktop.add(setBounds(x, y, w, h, frame = jInternalFrame(title))); frame.setSelected(true); ret fixInternalFrame(frame); }); } static JInternalFrame addInternalFrame(final JDesktopPane desktop, fS title, final Component contents) { ret swing(func -> JInternalFrame { JInternalFrame frame = jInternalFrame(title); setInternalFrameContents(frame, contents); internalFrameDefaultPosition(frame, title); desktop.add(frame); frame.setSelected(true); ret fixInternalFrame(frame); }); }