Border outerBorder = BorderFactory.createLineBorder(Color. BLACK);
Border innerBorder = BorderFactory.createEmptyBorder(1, 5, 1, 10);
setBorder(BorderFactory.createCompoundBorder(outerBorder, innerBorder));
// Set up the undo manager.
this.undoManager = new ExtendedUndoManager();
getDocument().addUndoableEditListener(undoManager);
// Select all of the current text
selectAll();
}