Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2007, 07:48 PM
Member
 
Join Date: May 2007
Posts: 2
Rep Power: 0
ziniestro is on a distinguished road
Default Jtextarea and scroll
I want to put a scroll into a textarea
how can I do this?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 05-15-2007, 09:04 PM
Member
 
Join Date: Apr 2007
Location: Indiana
Posts: 85
Rep Power: 0
pegitha is on a distinguished road
Send a message via Skype™ to pegitha
Default
See this thread:
textarea
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-01-2007, 04:59 PM
Member
 
Join Date: May 2007
Posts: 38
Rep Power: 0
Marty is on a distinguished road
Default
Code:
 JTextArea text = new JTextArea(); //without parameters
JTextArea text = new JTextArea(10,40); //rows and columns
JTextArea text = new JTextArea( "" ); //text in jtextarea
 


JScrollPane pScroll = new JScrollPane(text, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
code hint scroll bar ? tryit Eclipse 3 04-28-2008 08:07 AM
How to add a shortcut key from JTextArea sukatoa Advanced Java 2 01-28-2008 09:39 AM
JTextArea saytri New To Java 0 01-13-2008 02:07 AM
Scroll thumb on the ScrollPanel SteM AWT / Swing 3 12-05-2007 07:35 PM


All times are GMT +2. The time now is 06:01 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org