If I want to look up a class in the API docs (e.g. the Exception class), how do I find it ? The index page has a pretty diagram showing the major libraries (Util, I/O, beans, etc) but as a newbie, I really don't know where to look.
I could use the online-search (which frequently gives too many results) but often I work off-line while travelling.
Am I missing a trick, or does familiarity come with use ?
Originally posted by Tom McCann: ... The index page has a pretty diagram showing the major libraries (Util, I/O, beans, etc)...
Oh, I just realized... You're probably looking at docs/index.html (where the diagram is). I think you want to be in a little deeper, at docs/api/index.html. Then use the lower left frame to find whatever class you want. [ February 15, 2006: Message edited by: marc weber ]
A quick way to find a class is to search in the lower-left "all classes" page.
Way back when I taught, whenever I was asked "what package is (say) ImageIcon in?", I didn't reply "javax.swing", but instead I showed how to find it out in a few clicks. Often, the student would later ask about another class and I would show them how to search *again*. Around the third time they would start to ask, pull up short and say "are you just going to show me how to search for it?" Hmmm...
Re Ctrl-F ... does FireFox always start searching at the top level and then down into the frames? Seems like IE (haven't opened it on purpose for a long time) searched the "current" frame based on cursor position or mouse click or some such thing.
Oh, and don't forget the "index" link at the top of the JavaDoc. If you vaguely remember a method called "doSomething" you can find classes that have it. [ February 16, 2006: Message edited by: Stan James ]
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi