File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Disable selection from the JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Disable selection from the JEditorPane" Watch "Disable selection from the JEditorPane" New topic

Disable selection from the JEditorPane

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361
I am using a JEditorPane in my Sun Certified Java Developer programming
I need to disable selection of text from the JEditorPane because i use the JEditorPane to display information to the user.

Thanks in advance.

Life is the biggest school
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
maybe this is all you need to do

I agree. Here's the link:
subject: Disable selection from the JEditorPane