• 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

Usage of JEdtior Pane

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a requirement where I need to display a file with a static block of text in the middle in a text area..where the user can modify the text above and below it...
I was trying to use a JEditorPane for this, and as we can add components to the editor pane....I added a JTextArea ,a label and another JTextArea in sequence to the JEditorPane..now the static block text which the user can not modify becomes a label and the other text goes into the text areas above and below it and I added the JEditorPane to a JScrollPane so that it popus the Scrollbars when the text entered exceeds the size of the JEditorPane.......
It does look good and works fine ...except that the JEditorPane does not popup the Scrollbars when the text exceeds the limit...and the text just scrolls down.. how can the scrollbars made to work...
Thanks in advance!!
 
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic