Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger
  • Frits Walraven

ScrollPane / JTextArea Help

Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I need to have a JTextArea that is resizable. I have it placed in a JScrollPane. I change the columns based on some business rules.

The resizing works great if I place it in BorderLayout.Center or in FlowLayout. However, if I place it in BoxLayout or other layouts it simply fills the size available.

Problem with the BoxLayout and FlowLayout is that the scrolling is really slow. I guess they refresh every time I move the scroll bar, where as the other layouts scroll much more quickly but are not respecting my column sizes.

Any help is appreciated.
    Bookmark Topic Watch Topic
  • New Topic