Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to set uneditable the jTextPane ???

807569Jul 12 2006 — edited Jul 12 2006
hi ,

In my application i need the JTextPane should get disabled (unEditable) after it gets load some questions from database (as my

requirements)

here i had an problem after loading the question from the database the jTextPane is editable eventhough i coded the following:

jTextPane.setEditable(false);
jTextPane.setFocusable(false);
jTextPane.setEnabled(false);

the above coding doesn't works well ...

I need after the question is loaded in the jTextPane it should not be editable mode

What to do?????

Please help me out

Thankx in advance
Shanthy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2006
Added on Jul 12 2006
15 comments
455 views