Home > Archive > Java Help > August 2007 > How to learn java library from API docs?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to learn java library from API docs?
|
|
| Chereddy Krishna 2007-08-11, 10:14 pm |
| I'm a beginner in this Java.
I learnt Library functions in C from the Help file of my compiler
( Turbo C++ 3.0 )
How can I learn Java's library from the API docs?
Is it possible?
I mean ... If I dont know anything about Swing and If I want to
program some Swing application; I just start refering the API docs
instead of reading some book on Swing.
Is it possible to learn some Java library without reading any book and
by just refering to API docs?
| |
| rossum 2007-08-11, 10:14 pm |
| On Sat, 11 Aug 2007 06:23:29 -0700, Chereddy Krishna
<alwayskrishna@rediffmail.com> wrote:
>I'm a beginner in this Java.
>I learnt Library functions in C from the Help file of my compiler
>( Turbo C++ 3.0 )
>How can I learn Java's library from the API docs?
>Is it possible?
>I mean ... If I dont know anything about Swing and If I want to
>program some Swing application; I just start refering the API docs
>instead of reading some book on Swing.
>Is it possible to learn some Java library without reading any book and
>by just refering to API docs?
It is possible, but it may not be easy. If you can find the Sun Java
docs then you can also find the Sun Java tutorials, which a probably a
better way to get started.
rossum
| |
|
| rossum wrote:
> On Sat, 11 Aug 2007 06:23:29 -0700, Chereddy Krishna
> <alwayskrishna@rediffmail.com> wrote:
>
> It is possible, but it may not be easy. If you can find the Sun Java
> docs then you can also find the Sun Java tutorials, which a probably a
> better way to get started.
<http://java.sun.com/docs/books/tutorial/index.html>
Mind you, the Javadocs are an excellent and important source of information,
particularly the package-level docs.
--
Lew
| |
|
| Chereddy Krishna[color=darkred]
Multi-posting is the practice of sending the same message independently to
separate newsgroups, and is both ineffective and somewhat rude. Most of the
Java newsgroups have substantial overlap in their readership; your message
will get through if you send it to only one of them. Furthermore, a person
won't enter an answer only to find that it is not in the conversation when
viewed from another group. It's not a good idea to fragment the
conversational threads in that manner.
Please do not multi-post. If you really feel the need to redundantly post
redundantly to redundant newsgroups, use "cross-posting", where the same
message posts simultaneously to all of them in a linked way.
People started answering you on clj.help only to find that you'd gone and
started over on clj.programmer.
--
Lew
| |
| Twisted 2007-08-11, 10:14 pm |
| On Aug 11, 12:43 pm, Lew <l...@lewscanon.com> wrote:
> Chereddy Krishna
>
>
> Multi-posting is the practice of sending...
[snip remainder of OT tangent]
I don't see anywhere where you answer the OP's question, and I don't
see anything to make what you did write relevant. Why would one
question get a straight answer, and another answer with nothing
visibly different (in the body or the headers) about it get a useless
response like the one you just wrote? And yet that's what I see here.
Nothing different about various questions, but something very
different about the attitude you had when answering them.
| |
|
| Twisted wrote:
> On Aug 11, 12:43 pm, Lew <l...@lewscanon.com> wrote:
>
> [snip remainder of OT tangent]
>
> I don't see anywhere where you answer the OP's question, and I don't
> see anything to make what you did write relevant.
Huh. You must've missed my first post to their question, then.
--
Lew
| |
|
| Zig wrote:
> On Sat, 11 Aug 2007 09:20:15 -0400, Chereddy Krishna
> <alwayskrishna@rediffmail.com> wrote:
>
>
> Possible, but not practical.
> Without a book, your best place to start is the Java Tutorial:
> http://java.sun.com/docs/books/tutorial/
>
> You will also note in the API docs (such as the package javax.swing)
> once you scroll past the classes and read the "Package javax.swing
> Description" it will refer you to the Java Tutorial. API docs are
> intended to be a quick reference once you have a general idea what you
> are looking for. For small packages that have a very well defined
> meaning, then the API docs may be sufficient, but for more sophisticated
> packages (such as Swing), you are better off reading the package
> tutorial to get a feel for the terminology and structure.
>
> There are a number of books available though, so it might not hurt to
> pick up one for reading.
This is substantially the same information that was provided in the clj.help
version of this thread, joined here with the clj.programmer line for
everyone's convenience.
After you've gotten a gander at the tutorials, Sun also has delightful white
papers. While they might not directly reveal code idioms you want to use
(though many do), they provide much insight into the mindset of the Java
universe and the way things work.
IBM developerWorks
<http://www.ibm.com/developerworks/>
has an entire tree devoted to Java that is priceless.
<http://www.ibm.com/developerworks/java>
--
Lew
| |
|
|
| Twisted 2007-08-11, 10:14 pm |
| On Aug 11, 8:11 pm, Lew <l...@lewscanon.com> wrote:
> Twisted wrote:
>
>
>
>
> Huh. You must've missed my first post to their question, then.
That WAS your first post to their question. This thread has only six
posts. The OP's question, your OT followup, my followup to your
followup, your post I'm replying to now, Zig's more helpful separate
response to the OP's question, and your response to Zig. Seven now,
including this post. More if you read this later and there've been
more new posts, which will all be dated after this post's timestamp.
Google's archive shows nothing after the OP's question and before your
OT followup, from you or anyone else, to this thread. Even if
something had been posted with X-No-Archive: Yes I'd see it now as
it's been less than six days since the thread was born.
So no, I didn't miss your first post to their question. I followed up
to your first post to their question. :P
| |
| Patricia Shanahan 2007-08-11, 10:14 pm |
| Twisted wrote:
> On Aug 11, 8:11 pm, Lew <l...@lewscanon.com> wrote:
>
> That WAS your first post to their question. This thread has only six
> posts...
The first post on this topic from Lew that I could find, either on the
UCSD NNTP server or on Google groups, is
http://groups.google.com/group/comp...f0d4396f06d0f22
It was a substantive reply.
It was posted to comp.lang.java.help. If you looked only in
comp.lang.java.programmer you would not have seen it. Confusion due to
some posters only seeing part of the discussion is a natural but
unfortunate consequence of multi-posting.
Patricia
| |
| Arne Vajhøj 2007-08-12, 4:34 am |
| Patricia Shanahan wrote:
> Twisted wrote:
>
> The first post on this topic from Lew that I could find, either on the
> UCSD NNTP server or on Google groups, is
> http://groups.google.com/group/comp...f0d4396f06d0f22
> It was a substantive reply.
>
> It was posted to comp.lang.java.help. If you looked only in
> comp.lang.java.programmer you would not have seen it. Confusion due to
> some posters only seeing part of the discussion is a natural but
> unfortunate consequence of multi-posting.
So you can argue that Lew wrote what he did for the benefit
of Twisted !
:-)
Arne
| |
| Twisted 2007-08-12, 7:11 pm |
| On Aug 11, 10:57 pm, Patricia Shanahan <p...@acm.org> wrote:
> Twisted wrote:
>
>
> The first post on this topic from Lew that I could find, either on the
> UCSD NNTP server or on Google groups, ishttp://groups.google.com/group/comp.lang.java.help/msg/df0d4396f06d0f22
> It was a substantive reply.
Nope. That is not a post from Lew to this thread. The first post by
Lew to this thread was the 100% OT one I called him on.
What goes in in some other thread is irrelevant, especially if it's
not even in the same *newsgroup*, because I won't necessarily have
read it, and neither will anyone else. Any reference to such is thus
going to appear out of context to a majority of readers and should
therefore be avoided.
Keep discussions inside the same thread where they originated. If your
newsreader doesn't thread references properly when you reply get a new
one. *Google Groups* even manages to get that bit right, for heaven's
sake!
If Lew was indeed referring to a post he made in a completely
different place, and perhaps to one the OP made in a different place,
it's no wonder he made no sense at all; he posted in the wrong place.
He should have posted in the other place. :P
| |
| Patricia Shanahan 2007-08-12, 7:11 pm |
| Twisted wrote:
> On Aug 11, 10:57 pm, Patricia Shanahan <p...@acm.org> wrote:
>
> Nope. That is not a post from Lew to this thread. The first post by
> Lew to this thread was the 100% OT one I called him on.
Actually, you are posting in both comp.lang.java.programmer, in a thread
that does not contain Lew's original response, and in
comp.lang.java.help in the same thread as Lew's response.
You seem to be treating "thread" as the same "topic" or as containing
all responses to a given question. Ideally, that would be the case, but
multi-posting makes them different.
Patricia
| |
| Roedy Green 2007-08-12, 10:12 pm |
| On Sat, 11 Aug 2007 06:23:29 -0700, Chereddy Krishna
<alwayskrishna@rediffmail.com> wrote, quoted or indirectly quoted
someone who said :
>How can I learn Java's library from the API docs?
The problem with the API docs in they contain many methods you will
rarely use. You get swamped in detail. Read the tutorials first. Also
look up the components in the Java glossary e.g.
http://mindprod.com/jgloss/jbutton.html
It will show you a small program that uses the most common methods,
all heavily commented.
Then go back and read the API's to see what else is in there.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
| |
| Chereddy Krishna 2007-08-13, 4:30 am |
| [color=darkred]
Thanks for the Site Roedy Green
| |
| Twisted 2007-08-13, 7:19 pm |
| On Aug 12, 1:05 pm, Patricia Shanahan <p...@acm.org> wrote:
> You seem to be treating "thread" as the same "topic" or as containing
> all responses to a given question. Ideally, that would be the case, but
> multi-posting makes them different.
Eh. I'm using "thread" to refer to a thread, as in what Google Groups
shows to be a tree of responses to an initial posting in
comp.lang.java.programmer when tree view is on. I am not subscribed to
any other comp.lang.java newsgroups and don't read them so I don't
know what's going on in them and I frankly don't care either.
Referring to events in one of those here is going to leave readers of
this newsgroup and lacking context. If there's some necessity
for doing so a summary of whatever it is that establishes the relevant
background context for people who only read cljp would seem to be in
order, and probably a GG link or several for those who want to see
what the summary is based on. OTOH, it's almost guaranteed that
referring to events in one newsgroup from another is just going to be
OT and confusing no matter what you do. Stick to discussing Java. :P
| |
| Ishwor Gurung 2007-08-23, 4:24 am |
| Twisted wrote:
> On Aug 11, 12:43 pm, Lew <l...@lewscanon.com> wrote:
>
> [snip remainder of OT tangent]
>
> I don't see anywhere where you answer the OP's question, and I don't
> see anything to make what you did write relevant. Why would one
> question get a straight answer, and another answer with nothing
> visibly different (in the body or the headers) about it get a useless
> response like the one you just wrote? And yet that's what I see here.
> Nothing different about various questions, but something very
> different about the attitude you had when answering them.
I guess as someone said once usenet -> uselessnet
just my pov.
--
Cheers,
Ishwor Gurung
/* humpty dumpty */
| |
| Ishwor Gurung 2007-08-23, 4:24 am |
| Chereddy Krishna wrote:
>
I agree with Roedy. Tutorials are easy to grasp and they show u how you can
use a particular method in an API.
[color=darkred]
>
> Thanks for the Site Roedy Green
As an aside, Sun's java website has lots of tutorial on Java swing. It might
be a good place to start. Goodluck!
--
Cheers,
Ishwor Gurung
/* humpty dumpty */
|
|
|
|
|