🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3315

Traps for New Players

#3315
From: Will Be
Date: Wed, 18 Feb 1998 00:00
28 lines
1292 bytes
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 !!)
Technical Details
Message-ID: <01bd3cc5$74e795c0$aaa416cb@pcx00006>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,95565c2d5f09c188,start
X-Google-Attributes: gid1089d0,public
From: "Will Be" <NOSPUM.wlb@invetech.com.au>
Subject: Traps for New Players
Date: 1998/02/18
Message-ID: <01bd3cc5$74e795c0$aaa416cb@pcx00006>
X-Deja-AN: 326393176
Organization: None
Newsgroups: borland.public.jbuilder.java.api