While going through Java swing I faced this problem. I have a JTextField which has predefined and not editable text. the user should be able to append other text to it but w
Take a look at DocumentFilter. It should allow you to define a "protected" area of text.
Examples here and here