This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scrolling a texfield

 
sukh singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one help me scroll down a editable and uneditable textfield
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
A TextField has only one column and a row. So I don't see the point why you need to scroll. Any way let me assume, what you are talking about is a TextArea, and you want to scroll this, then what you can do is to create a JScrollPane jsp = new JScrollPane();
jsp.add(new JTextArea(5,5));
Hope this is what you wanted. Cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic