Article View: borland.public.jbuilder.java.api
Article #3318Re: Traps for New Players
From: Rich Wilkman
Date: Thu, 19 Feb 1998 00:00
Date: Thu, 19 Feb 1998 00:00
57 lines
2400 bytes
2400 bytes
Will:
drawString() and paint() are methods and not classes, so the class
browser won't show them. You would have to browse from the object
that holds these calls (in this case, that would be Applet())
Or, you could do Search | Search Sourcepath and find all the places
that paint() is use/overridden in Java and then try to figure out
which one of those was in scope in your code.
-Rich
Will Be wrote:
>
> G'day All,
> I'm a newbie to Java and experienced a "spot of bother" last night with the
> following Applet code, compiled OK, ran OK ... but there was no output in
> the "Appletviewer".
> --
> import java.applet.Applet;
> import java.awt.Graphics;
>
> public class HelloWorld extends Applet {
> public void Paint(Graphics g) {
> g.drawString("Hello world!", 50, 25);
> }
> }
> --
> I tried looking at the "drawString" with "Browse symbol at cursor .." - it
> couldn't be found, I tried looking at "Paint" with the "Browse ..." not
> found either.
>
> An eventual char x char comparison with a cut'n'paste copy from the
> tutorial showed "Paint" as "paint".
>
> Should the IDE have found "drawString" in its class hierarchy or was that
> lost due to the capitalization of paint ?
> cheers
> Will Beattie
> (All opinions are solely mine .. and I will give them freely - you don't
> need to ask !!)
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team
If you see something that looks like an opinion up there,
it's mine and mine alone.
Mail sent to me from the newsgroups won't bounce but will
be ignored. If I have time, I'll respond, but you have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<34EC63B0.BE08164E@corp.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bd3cc5$74e795c0$aaa416cb@pcx00006>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,95565c2d5f09c188 X-Google-Attributes: gid1089d0,public From: Rich Wilkman <rwilkman@corp.borland.com> Subject: Re: Traps for New Players Date: 1998/02/19 Message-ID: <34EC63B0.BE08164E@corp.borland.com> X-Deja-AN: 326642981 Content-Transfer-Encoding: 7bit References: <01bd3cc5$74e795c0$aaa416cb@pcx00006> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: None Newsgroups: borland.public.jbuilder.java.api