Results 1 to 5 of 5
  1. #1
    Drew345 is offline Member
    Join Date
    May 2015
    Posts
    31
    Rep Power
    0

    Default Best online resource

    When I have a question about a Java library method, where is the best place to search?
    I assumed looking right on the Oracle website would lead to good results, but whenever I search I get no meaningful results.
    For example, I search:

    JFrame background color (to find how to use do this)

    Toolkit.getDefaultToolkit().beep() (to find how to use this)

    but on Oracle, I just get 70 old articles, no real resource material.

    Of course I just do a google search and find what I need from various forums, but it would be nice to have a real reference website of information handy. Is there such an online reference?

    Thanks,

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,991
    Rep Power
    8

    Default Re: Best online resource

    The examples you gave are bad examples. You can type those in any editor and see what happens for yourself. You don't need teh interwebz to hold your hand there.

    Imagine creating a website with the functionality that you're describing. Building it is one thing. But imagine having to maintain that. It will be obsolete not after but DURING development due to the sheer volume of information and the volatility of it.

    If I need info, I use one of these in no particular order:
    - Books (which will turn obsolete fast too, depending on the subject, but usually are a goldmine of information)
    - The documentation
    - Vendor's website
    - Tutorials (But avoid Roseindia.net at all cost, even if it's the last site on earth, and your life depended on it, don't.)
    - Duckduckgo, Google
    - StackOverflow
    - Forums (If you're not in a hurry and can't find it anywhere else)
    - Youtube tutorials (The current generation loves this, but I hate it. Too slow, whiney voices, horrible resolutions, No offline use)
    - Experiment with code (creating small programs demonstrating one thing is a valuable learning experience too).

    Learning some google-fu doesn't hurt either. If you don't get any meaningful results on beep(), your way of querying needs polishing up.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  3. #3
    Drew345 is offline Member
    Join Date
    May 2015
    Posts
    31
    Rep Power
    0

    Default Re: Best online resource

    Thank you very much for your reply. I have a couple of questions about what you wrote.

    You mention that you use (#2) the documentation. Well, I think that is just what I am looking for. What do you mean by "the documentation" and where to find it?

    You mention to type what I am looking for in an editor and see what happens. I use eclipse.
    So, if I want to know what is the method to change a Jframe background color, then ... I type
    "JFrame background color" where in eclipse? Is there searchable documentation in eclipse. Just not sure what you meant by "type those in any editor and see what happens" Where in the editor (for eclipse) to find info on methods.

    Forums and Google are a great resource, thank you. I was just wondering if there was a more central repository.

    Thanks!

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Best online resource

    Quote Originally Posted by Drew345 View Post
    You mention that you use (#2) the documentation. Well, I think that is just what
    I am looking for. What do you mean by "the documentation" and where to find it?
    Java 8 Documentation

    You mention to type what I am looking for in an editor and see what happens. I use eclipse.
    So, if I want to know what is the method to change a Jframe background color, then ... I type
    "JFrame background color" where in eclipse?
    I believe Surfman meant that they are simple java constructs so you just put them in your code with
    an editor and observe their behavior when you run the program.

    For more specific information also take a look at the online tutorials. See the link in my signature.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,991
    Rep Power
    8

    Default Re: Best online resource

    Quote Originally Posted by Drew345 View Post
    Thank you very much for your reply. I have a couple of questions about what you wrote.

    You mention that you use (#2) the documentation. Well, I think that is just what I am looking for. What do you mean by "the documentation" and where to find it?

    You mention to type what I am looking for in an editor and see what happens. I use eclipse.
    So, if I want to know what is the method to change a Jframe background color, then ... I type
    "JFrame background color" where in eclipse? Is there searchable documentation in eclipse. Just not sure what you meant by "type those in any editor and see what happens" Where in the editor (for eclipse) to find info on methods.

    Forums and Google are a great resource, thank you. I was just wondering if there was a more central repository.

    Thanks!
    The JDK has good documentation overall. It's on the web, or you can download it here. Also, find the websites of your third-party components and check out the documentation there.

    And this is what I mean with "type in any editor":
    Java Code:
    public class Test {
       public static void main(String[] args) {
          JFrame f = new JFrame();
          f.setBackground(Color.RED);
          f.setSize(400,400);
          f.setVisible(true);
       }
    }
    Just create simple programs and play with the code.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. How to add a resource?
    By b2271916 in forum Eclipse
    Replies: 1
    Last Post: 02-21-2013, 04:06 AM
  2. Getting a Resource from within a Jar file
    By kammce in forum Advanced Java
    Replies: 4
    Last Post: 09-24-2012, 10:43 AM
  3. When to Use Resource Bundle?
    By Arun_N in forum New To Java
    Replies: 7
    Last Post: 11-04-2011, 04:09 PM
  4. closing the use of a resource
    By jayragz in forum New To Java
    Replies: 14
    Last Post: 05-17-2011, 04:24 PM
  5. JAVA resource(s)
    By Sparky in forum New To Java
    Replies: 4
    Last Post: 02-15-2011, 01:26 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
  •