Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-06-2007, 01:59 PM
Member
 
Join Date: Dec 2007
Posts: 15
Soda is on a distinguished road
TextArea Bug?
Whenever I size a textarea, the text does not display when I use either setText or append. This only happens when I specify the size of the textarea.


Quote:
JTextArea t = new JTextArea(50,50);

t.append("Hello");
^ Code is something like that. Its suppose to display "Hello", but since I had specify the size, it wont display.

Why is it like that? Is there a way to display it with a specified size for the textarea?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-06-2007, 08:16 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,141
hardwired is on a distinguished road
Put your textArea inside a JScrollPane so it can be displayed at the size you specify.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-07-2007, 01:37 PM
Member
 
Join Date: Dec 2007
Posts: 15
Soda is on a distinguished road
Thnx much!!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

vB 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
TextArea with Unicode Java Tip javax.swing 0 04-16-2008 11:53 PM
How to get the position of character in TextArea loganathan.lakshmanan JavaServer Pages (JSP) and JSTL 1 01-19-2008 01:06 AM
Append text inputed in the textfield into a TextArea romina AWT / Swing 1 08-07-2007 06:35 AM
problems when I print in textarea gabriel New To Java 1 07-26-2007 07:57 PM
textarea ubuntu AWT / Swing 4 05-12-2007 10:54 PM


All times are GMT +3. The time now is 03:37 PM.


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