Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
     
    Ranch Hand
    Posts: 4632
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    reply
      Bookmark Topic Watch Topic
    • New Topic