Results 1 to 17 of 17
  1. #1
    Join Date
    Nov 2009
    Posts
    22
    Rep Power
    0

    Default where can I find description functions of methods

    where can I find it.

    Example:
    I have:
    function:
    setIconImage() of JFrame, where can i find description to I can use it.

    sorry if i write erorr because from vietman

  2. #2
    CodesAway's Avatar
    CodesAway is offline Senior Member
    Join Date
    Sep 2009
    Location
    Texas
    Posts
    238
    Rep Power
    5

    Default

    Check out the Java API.

    It's available online - use your favorite search engine and search for the class name (and java version). For example, "JFrame java 6". When I search for classes this way, it's usually the first result.

    Click the link and search for the method name you want. You have the entire documentation for that class at your fingertips.


    There are ways to view the docs off-line, as well. For example, if you use Eclipse as your IDE, you can hover over a method name (in the code) to see the Javadocs for the method.
    CodesAway - codesaway.info
    writing tools that make writing code a little easier

  3. #3
    Join Date
    Nov 2009
    Posts
    22
    Rep Power
    0

    Default

    thank you CosesAway.

    I see link i need but it's haven't the function search.
    Last edited by manhtungtnk28@gmail.com; 11-16-2009 at 12:32 AM.

  4. #4
    sky
    sky is offline Member
    Join Date
    Nov 2009
    Posts
    96
    Rep Power
    0

    Default

    I always look in the Java API documentation. Just press Ctrl+F and search por the class that you need, in this case JFrame. There you have all the methods. Just remeber that some methods are inherited, but you also have a list of all of them there.

  5. #5
    Join Date
    Nov 2009
    Posts
    22
    Rep Power
    0

    Default

    but sky !!!

    I example: I want to find function ADD of JFrame then how I must or I want find function: setSize of JButton how I must too.

    thank all

  6. #6
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    java doesn't have functions....it has methods and here is a link to the j2seAPI


    Java 2 Platform SE 5.0

  7. #7
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    we wouldn't have these prblems if they kept our jobs in America

  8. #8
    CodesAway's Avatar
    CodesAway is offline Senior Member
    Join Date
    Sep 2009
    Location
    Texas
    Posts
    238
    Rep Power
    5

    Default

    Quote Originally Posted by aaroncarpet View Post
    we wouldn't have these prblems if they kept our jobs in America
    HEY! That is COMPLETELY uncalled for!
    Last edited by CodesAway; 11-17-2009 at 04:54 AM.
    CodesAway - codesaway.info
    writing tools that make writing code a little easier

  9. #9
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    i can program the OO way small module inheritence,,,,,,,,,go pay your outsourced fortran thinkers.....its cheaper than hiring educated progammmers that know the difference between small module design and grunt method

  10. #10
    CodesAway's Avatar
    CodesAway is offline Senior Member
    Join Date
    Sep 2009
    Location
    Texas
    Posts
    238
    Rep Power
    5

    Default

    Quote Originally Posted by aaroncarpet View Post
    i can program the OO way small module inheritence,,,,,,,,,go pay your outsourced fortran thinkers.....its cheaper than hiring educated progammmers that know the difference between small module design and grunt method
    I've read many of your posts, and about half (including this one) make little sense to me.

    Is this in response to him calling them functions instead of methods, cause that's a common mistake - especially because in C++, for example, they ARE called functions?

    I'm not a fan of passing judgment, so can you explain your rude comments??
    CodesAway - codesaway.info
    writing tools that make writing code a little easier

  11. #11
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Quote Originally Posted by aaroncarpet View Post
    java doesn't have functions....it has methods and here is a link to the j2seAPI


    Java 2 Platform SE 5.0
    The latest Java version is 1.6. It's best to point people to the latest version always unless they have indicated that they are using an older version.

    @OP If you have installed the JDK then you already have the specs on your computer. The API specs are generated from the comments in the Java source code.
    If you open your Java installation folder, you will see a src.zip file. That file contains the source code of the standard Java classes. If you point your IDE to it you will start getting the those specs displayed as tool tips text in your IDE.

  12. #12
    sky
    sky is offline Member
    Join Date
    Nov 2009
    Posts
    96
    Rep Power
    0

    Default

    I cannot post links because I don't have enought post but if you serch in Google "java 6 api overview" the first result is the web I was talking about. Then you look for the class in the frame (a.k.a column) of the left ("All classes"). You can do it by hand or just using the search function of your browser (usually Ctrl+F). Once you find the class (JFrame, JButton, ...) you click in the name and in the frame of the right appears a full description: methods, fields, ... Just scroll down and you will see all of them. Just be careful because some of them are inherited, as I told you before, but you also have a section called: inherited methods. I hope this helps.

  13. #13
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    Quote Originally Posted by r035198x View Post
    The latest Java version is 1.6. It's best to point people to the latest version always unless they have indicated that they are using an older version.

    @OP If you have installed the JDK then you already have the specs on your computer. The API specs are generated from the comments in the Java source code.
    If you open your Java installation folder, you will see a src.zip file. That file contains the source code of the standard Java classes. If you point your IDE to it you will start getting the those specs displayed as tool tips text in your IDE.
    He is right here is the link to the most current API but reading the API only works if you understand how java works otherwise it will all just be a bunch of classes and you won't know which overided constructor to use or what other classes you need to include in your program to use a certain method

    Java Platform SE 6

    i have unzipped the api and keep it on my desktop when i code i have another window of the api to refer to...i like using the api better than all the gadgets on netbeans where it automatically shows available inherited methods
    Last edited by aaroncarpet; 11-17-2009 at 03:37 PM. Reason: other thoughts

  14. #14
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    if you are really trying to just get an initial grasp of the language you shoud go through the sun tutorials here is the link

    The Java™ Tutorials

  15. #15
    Join Date
    Nov 2009
    Posts
    22
    Rep Power
    0

    Default

    thank everyone

  16. #16
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default Thank YOu Everyone

    Quote Originally Posted by manhtungtnk28@gmail.com View Post
    thank everyone
    I was really off the handle and want to thank everyone for tollerating my rude behavior...alot of issues come up for me around holidays...And this forum is not a place for me to dispence misplaced/misunderstood anger
    I sincerely apologize and those angry remarks weren't about you they were about me...:(

  17. #17
    Join Date
    Nov 2009
    Posts
    22
    Rep Power
    0

    Default

    Quote Originally Posted by sky View Post
    I cannot post links because I don't have enought post but if you serch in Google "java 6 api overview" the first result is the web I was talking about. Then you look for the class in the frame (a.k.a column) of the left ("All classes"). You can do it by hand or just using the search function of your browser (usually Ctrl+F). Once you find the class (JFrame, JButton, ...) you click in the name and in the frame of the right appears a full description: methods, fields, ... Just scroll down and you will see all of them. Just be careful because some of them are inherited, as I told you before, but you also have a section called: inherited methods. I hope this helps.
    more than, you are a member new, why you know how many

Similar Threads

  1. Replies: 8
    Last Post: 04-16-2012, 11:00 PM
  2. 2 functions
    By baze7 in forum New To Java
    Replies: 3
    Last Post: 08-14-2009, 04:41 AM
  3. JSP functions and Java Bean methods
    By lisa.lipsky in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 07-07-2009, 07:29 AM
  4. DOAP files (description of a project)
    By turtleboy in forum XML
    Replies: 0
    Last Post: 11-05-2008, 01:54 PM
  5. Description the server encountered an internal error
    By Jack in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 07-02-2007, 02:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •