This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JScrollPane problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JScrollPane problem" Watch "JScrollPane problem" New topic
Author

JScrollPane problem

Anirban dutta
Ranch Hand

Joined: Aug 08, 2002
Posts: 89
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
 
GeeCON Prague 2014
 
subject: JScrollPane problem