• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextArea Problem

 
Pranit Saha
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm making a Test Engine.. The questions are displayed in random in a JTextArea object.. The thing is i've set the vertical scrollbar as needed.. but whenever it's needed the JTextArea becomes too small and doesn't display nething.. Obviously it's there inside a ScrollPane.. pls help..
 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
how did u construct the textarea ??
rows??colums??
 
Pranit Saha
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JTextArea question = new JTextArea(" ",17,60);
Thanks for ur reply..
Originally posted by Sajee Joseph:
Hi,
how did u construct the textarea ??
rows??colums??

 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!