static JTextPane jtextpane() { ret jenableUndoRedo(swing(func -> JTextPane { new JTextPane })); } static JTextPane jtextpane(S text, AttributeSet attributes) { JTextPane pane = jtextpane(); pane.setCharacterAttributes(attributes, true); pane.setText(text); ret pane; } static JTextPane jtextpane(S text) { ret jtextpane(text, style_normal()); }