aspose file tools
The moose likes Swing / AWT / SWT and the fly likes JTextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "JTextArea " Watch "JTextArea " New topic
Author

JTextArea

Shekhar Nathile
Greenhorn

Joined: Mar 20, 2006
Posts: 2
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 ..........
Sherry Jacob
Ranch Hand

Joined: Jun 29, 2005
Posts: 128
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.


<strong><br />Cheers !!<br /> <br />Sherry<br /></strong><br />[SCJP 1.4]
Shekhar Nathile
Greenhorn

Joined: Mar 20, 2006
Posts: 2
Thanks Sherry ,
But i need VERTICAL SCROLLBAR & HORIZONTAL SCROLLBAR in disable state although TextArea is Empty ...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JTextArea
 
Similar Threads
How to scroll with the mouse horizontally
relayouting after setViewportView for JScrollPane
Scrolling in a JScrollPane problem
Remove Horizontal Scrool bar in Mozilla Firefox browser?
Horizontal Scrollbar in a text area How do I get one?