• 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

JTextArea

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
I am using JTextArea in that i need to show HORIZONTAL SCROLLBAR & VERTICAL SCROLLBAR so i used VERTICAL_SCROLLBAR_ALWAYS & HORIZONTAL_SCROLLBAR_ALWAYS as argument while defining JSrollPane but i need to show that vertical & horizontal scroll bar as in disabled state but it remain in enable state .

Thanks ..........
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Shekhar Nathile:
i used VERTICAL_SCROLLBAR_ALWAYS & HORIZONTAL_SCROLLBAR_ALWAYS...but i need to show that vertical & horizontal scroll bar as in disabled state but it remain in enable state



Hi Shekhar,
Why go for that kind of stuff when you have a facility of using VERTICAL_SCROLLBAR_AS_NEEDED and HORIZONTAL SCROLLBAR_AS_NEEDED. That way you can make your application have scrollbars visible only when the size of the text in the JTextArea exceeds it's boundaries.

I feel thats a better way to implement Scrollbars in JTextArea.

Hope it helps.
 
Shekhar Nathile
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Sherry ,
But i need VERTICAL SCROLLBAR & HORIZONTAL SCROLLBAR in disable state although TextArea is Empty ...
 
reply
    Bookmark Topic Watch Topic
  • New Topic