• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Editplus/JEdit style word wrap in JTextArea

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to create a simple text editor, with Editplus/JEdit style word wrap. The word wrap in JTextArea does not indent properly for lines begining with tabs.
example:
--------------------------------------------------
JTextArea word wrap:


--------------------------------------------------
Editplus/JEdit style word wrap:


--------------------------------------------------
i hope i have made my self clear. below is the code i use to achieve wordwrap in JTextArea.

Can any one tell me how can i achieve Editplus/JEdit style word wrap with JTextArea.

Any help is appreciated.

regards,
jigar


[ December 09, 2005: Message edited by: Jigar Gosar ]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi friend,

I have developed a small program that works exactly as notepad. I noticied using JEditorPane is more useful than JTextPane. JEditorPane handles all types of contents. it is as stright as JTextPane.

Happy working...

Chandu.
 
Jigar Gosar
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i dont mind working with JEditorPane/JTextPane, but note[ad style wordwrap is excatly what i dont want.

i just want to achieve Editplus/JEdit style indented word wrap. so any help in this regard will be apreciated.
 
Every time you till, you lose 30% of your organic matter. But this tiny ad is durable:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic