It's not a secret anymore!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes where to find in api Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "where to find in api" Watch "where to find in api" New topic

where to find in api

kashif sohail

Joined: Dec 04, 2000
Posts: 29
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
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.
the insets of this container.
any help to use of like these
Sandeep Nachane
Ranch Hand

Joined: Dec 06, 2000
Posts: 57
Is this what you are looking for ?
-Sandeep Nachane

<A HREF="" TARGET=_blank rel="nofollow"></A>
kashif sohail

Joined: Dec 04, 2000
Posts: 29
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
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Very good point. I struggle with the lack of examples in the API all the time.
What I usually do is go to and do a search on the method (often un-marking the 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);
and 6 or 7 examples of how to use it

"JavaRanch, where the deer and the Certified play" - David O'Meara
kashif sohail

Joined: Dec 04, 2000
Posts: 29
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
I agree. Here's the link:
subject: where to find in api
It's not a secret anymore!