If you'd read the JavaDoc for the JTextArea class you'd have seen:
"The java.awt.TextArea internally handles scrolling. JTextArea is different in that it
doesn't manage scrolling, but implements the
swing Scrollable interface. This allows it to be placed inside a JScrollPane if
scrolling behavior is desired, and used directly if scrolling is not
desired. "
So put your text area in a JScrollPane and set the relavbent scroll bars.
Cheers,
--
Bob Arnott
Software Engineer, Consulting
Accelrys Ltd.
334 Cambridge Science Park
Cambridge, CB4 0WN
+44 (0) 1223 228621
Martin Simon <[EMAIL PROTECTED]>
Sent by: A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
23/10/2002 10:52
Please respond to A mailing list about Java Server Pages specification and
reference
To: [EMAIL PROTECTED]
cc:
Subject: JTextArea
I have a swing.JTextArea. How can i show scrollbars?
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com