Forums Register Login

How to add Vertical ScrollBar whenever text is exceded visible TextArea?

+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
Scrolling? That should be easy enough: look at this Java Tutorials page.
+Pie Number of slices to send: Send
I got it but i want only vertical scrollbar & also it should be activated only if text is exceeded visible TextArea.
+Pie Number of slices to send: Send
I thought you could specify which way those scroll panes scroll.
+Pie Number of slices to send: Send
The JScrollPane API has setHorizontalScrollBarPolicy and setVeriticalScrollBarPolicy methods to do just that. The default is both horizontal and vertical "as needed"
+Pie Number of slices to send: Send
First of all use "meaningful" variable names. Two character names are not meaningful.

i want only vertical scrollbar & also it should be activated only if text is exceeded visible TextArea.



That is the default behaviour when you add a JTextArea to a scrollpane.

I got it but



Post the code you used.
Bras cause cancer. And tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3068 times.
Similar Threads
Remove menu item when internal frame is closed
How to know which key is pressed from keyboard using ActionListener or KeyListener?
Calculator Problem
null Pointer Exception
Dynamic building of Jmenu
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:41:05.