• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to find in api

 
kashif sohail
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sandeep Nachane
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this what you are looking for ?
http://java.sun.com/products//jdk/1.2/docs/api/
-Sandeep Nachane
 
kashif sohail
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
kashif sohail
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic