Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JScrollPane problem

 
Anirban dutta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
Can anybody please tell me that whether it is possible to find whether a component(say a TextField) is totally inside the ScrollPane's visible region or not. Actually the problem is that I have many textfields inside a panel which is inside a ScrollPane. Now whenever the focus goes to any textfield then I want to check that whether the TextField is completely visible or not. If not then I want to programatically scroll so that the textfield is visible. Please guide me on how to do this.
Thanks and Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic