File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
 
Consider Paul's rocket mass heater.
 
subject: JScrollPane problem