Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextArea, JEditorPane or JTextPane: which is better suited for my application?

 
Isuru Sampath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reading my post.

I need a component to create an application which has a simple text editor functions. Intended functions include adding, deleting and inserting characters. No need to bold, Italics, Underlining or any other fancy formatting since I'm writing the outpt to a text file. Which of the following is ideal for this purpose:

  • JTextArea
  • JEditorPane
  • JTextPane


  • Can you kindly explain any advantages of using the either component.
    [ November 03, 2006: Message edited by: Isuru Sampath ]
     
    Michael Dunn
    Ranch Hand
    Posts: 4632
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    > Can you kindly explain any advantages of using the either component.

    this would probably explain it better for you

    http://java.sun.com/docs/books/tutorial/uiswing/components/text.html
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic