Win a copy of The Java Performance Companion this week in the Performance 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