JTextArea (@Nls @NotNull String text, boolean editable, Color background, Color foreground, Font font) { JTextArea area = new JTextArea(text); area.putClientProperty(Expandable.class, this); area.setEditable(editable); area.setBackground(background); area.setForeground(foreground); area.setFont(font); area.setWrapStyleWord(true); area.setLineWrap(true); SwingUndoUtil.addUndoRedoActions(area); return area; }