Code example for JTextComponent

Methods: setEditable