// Note: very SLOW with big text (JTextArea) // Use showText_fast_noWrap instead static JTextArea showText(fS title, O text) { ret showText(null, title, text); } static JTextArea showText(JTextArea ta, fS title, O text) { fS _text = str(text); if (ta != null) ret activateFrameAndReturnComponent(setFrameTitle(title, setText(ta, _text))); ret swing(func -> JTextArea { JTextArea textArea = newTypeWriterTextArea(_text); makeFrame(title, new JScrollPane(textArea)); ret textArea; }); } static JTextArea showText(O text) { ret showText(str(text)); } static JTextArea showText(S text) { ret showText(autoFrameTitle(), text); } static JTextArea showText() { ret showText(""); }