JTextArea -- set last line editable only

Does anyone know of a way to configure a JTextArea such that only the last line is editable? Or even better, such that only a specified region is editable?
[162 byte] By [tieflinga] at [2007-11-27 5:42:41]
# 1
Maybe the DocumentGuard example from the JTextComponent examples will help you:https://myswing.dev.java.net/MyBlog/MySwingTree.html
camickra at 2007-7-12 15:21:35 > top of Java-index,Desktop,Core GUI APIs...
# 2
That looks like it will serve nicely. Thanks!
tieflinga at 2007-7-12 15:21:35 > top of Java-index,Desktop,Core GUI APIs...