my question is basic one when we find some method in api for example say getInset in Panel class how do i know what this method do(in detail ) and how to use it (example) api only says like getInsets public Insets getInsets() Determines the insets of this container, which indicate the size of the container's border. A Frame object, for example, has a top inset that corresponds to the height of the frame's title bar. Returns: the insets of this container. Since: JDK1.1 any help to use of like these kashif
no fellow this api only shows that these methods are avaialabe and tells than this method does this but does not tell us how method do this and what method callls other method who performs this some other link plz kashif
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
Very good point. I struggle with the lack of examples in the API all the time. What I usually do is go to java.sun.com and do a search on the method (often un-marking the java.sun.com search and sticking only to the Java Developer stuff). Then scrounge around for an example. That way I found this explaination (do a find on getInsets in here); http://developer.java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/shortcourse.html and 6 or 7 examples of how to use it
"JavaRanch, where the deer and the Certified play" - David O'Meara
kashif sohail
Greenhorn
Joined: Dec 04, 2000
Posts: 29
posted
0
well thanx but getInset was an example and thanx for link but what if i m looking for some other example and did not find any tutorial on that do sun has some site to tell the exampled use of its api kashif