Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13983

Re: need help with javadocs

From Daniel Pitts <newsgroup.nospam@virtualinfinity.net>
Newsgroups comp.lang.java.programmer
Subject Re: need help with javadocs
References <jnhu9t$19n$1@dont-email.me>
Message-ID <Xl%mr.74277$YM2.19618@newsfe05.iad> (permalink)
Date 2012-04-28 16:49 -0700

Show all headers | View raw


On 4/28/12 4:25 PM, bilsch wrote:
> Several times I've visited Oracle site to browse the class library
> documentation but I never come away with information that satisfied my
> curiosity. Here's an example. If someone leads me through this example
> it may get me moving through javadocs successfully.
>
> EXAMPLE:
> I have a book with the following a statement:
> Font f = new Font("TimesRoman", Font.Bold, 36);
> The book says that Font is from the java.awt package. I understand what
> the statement does, but I don't know where to find a list of the
> parameters that Font can work with, for instance I would assume
> ("CourierNew", Font.Italic, 12) will work, but where is this information
> listed? Even more important, where will the documentation tell me what
> kind of information goes in the =new Font(a, b, c) part of the
> statement. Instead of a, b and c why not w, x, y and z? Where does the
> documentation tell me the kind and number of parameters that go inside
> the parentheses in Font f = new Font()?
>
> TIA Bill S.
>
>
If you do a google search for 'java.awt.font 1.6', you'll likely come 
across this page:

docs.oracle.com/javase/6/docs/api/java/awt/Font.html

This is the javadoc for Font. It includes details for the Font 
constructor (which is what you were looking at).

HTH,
Daniel.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

need help with javadocs bilsch <king621@comcast.net> - 2012-04-28 16:25 -0700
  Re: need help with javadocs Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 19:48 -0400
  Re: need help with javadocs Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-28 16:49 -0700
  Re: need help with javadocs Martin Gregorie <martin@address-in-sig.invalid> - 2012-04-29 00:05 +0000
  Re: need help with javadocs "John B. Matthews" <nospam@nospam.invalid> - 2012-04-29 00:10 -0400
    Re: need help with javadocs Lew <noone@lewscanon.com> - 2012-04-28 21:14 -0700
      Re: need help with javadocs Patricia Shanahan <pats@acm.org> - 2012-04-29 00:25 -0700
      Re: need help with javadocs Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2012-04-29 12:00 +0300
    Re: need help with javadocs Roedy Green <see_website@mindprod.com.invalid> - 2012-04-29 07:47 -0700
  Re: need help with javadocs Roedy Green <see_website@mindprod.com.invalid> - 2012-04-29 07:39 -0700

csiph-web