static new WeakHashMap makeFrame_myFrames; static JFrame makeFrame() { ret makeFrame((Component) null); } static JFrame makeFrame(O content) { ret makeFrame(programTitle(), content); } static JFrame makeFrame(S title) { ret makeFrame(title, null); } static JFrame makeFrame(S title, O content) { ret makeFrame(title, content, true); } static JFrame makeFrame(fS title, fO content, final bool showIt) { ret (JFrame) swing(func { if (getFrame(content) != null) ret setFrameTitle((Component) content, title); final JFrame frame = new JFrame(title); makeFrame_myFrames.put(frame, Bool.TRUE); JComponent wrapped = wrap(content); if (wrapped != null) frame.getContentPane().add(wrapped); frame.setBounds(300, 100, 500, 400); if (showIt) frame.setVisible(true); //callOpt(content, "requestFocus"); //exitOnFrameClose(frame); standardTitlePopupMenu(frame); ret frame; }); }