Hi, I have a TextArea which is instantiated as below: private javax.swing.JTextArea getDescriptionTextArea() { if(jTextArea == null) { jTextArea = new javax.swing.JTextArea(); jTextArea.setColumns(0); jTextArea.setWrapStyleWord(true); jTextArea.setLineWrap(true); } return jTextArea; }
I populate the TextArea using getDescriptionTextArea().setText("Predefined string of length 130 characters") and user is given a choice to enter text after these 130 characters. And My project requires these first 130 characters not to be edited by the user.