File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JEditorPane or JTextPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JEditorPane or JTextPane" Watch "JEditorPane or JTextPane" New topic
Author

JEditorPane or JTextPane

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4339
    
    2

my new project is a simple word processor. like Wordpad only probably even simpler. one of the first decisions is whether to use an editor pane or a text pane. my first impression is to use an editor pane because it seems to handle plain text better. i am reading the tutorials, but any advice is appreciated.

i noticed the tutorial here
uses a JTextPane.

this is a great project if you happen to be stuck without one. i am going to learn a great many new things from it.


SCJP
Visit my download page
Aniruddha Singtalur
Greenhorn

Joined: Aug 15, 2012
Posts: 8

JtextPane extends JEditorPane class , it has all the features of JEditorPane along with them it provides several additional features!!! so it makes sense to use JTextPane as it provides for lot of additional features, if you are not using those additional features then you can well use JeditorPane.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JEditorPane or JTextPane
 
Similar Threads
rich texteditor in Java
Can I use HTML as Help Doc in SCJD
JScrollPane with multiple JEditorPanes
JEditorpane adds spaces
Tables and RTFEditorKit. Help!