Article View: borland.public.jbuilder.java.language
Article #15923Re: Which one is correct?
From: Pasi Poutianen
Date: Fri, 16 Apr 1999 00:00
Date: Fri, 16 Apr 1999 00:00
32 lines
1320 bytes
1320 bytes
"John l.yn" wrote:
> Hi:
> I want to inherit g.drawString from my Applet. There have two ways that
> looks like exact when running.
> The first is:
> public void paint(Graphics g)
> g.drawString("test your bility before",20,20);
> super.paint(g);
> }
> The second is:
> public void paint(Graphics g)
> super.paint(g);
> g.drawString("test your bility",20,50);
> }
>
> Which one is correct? I think may be the Second.It is puzzle me!
Hi !
DonοΏ½t know much, but I think the second one is correct.
PP
>
>
> Best Regards!
>
> John l.yn
Technical Details
Message-ID:
<37177B2B.502605B@jytol.fi>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7f6i6f$k9j8@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,a7b199d28b1928f8 X-Google-Attributes: gidf74b3,public From: Pasi Poutianen <poupa@jytol.fi> Subject: Re: Which one is correct? Date: 1999/04/16 Message-ID: <37177B2B.502605B@jytol.fi> X-Deja-AN: 467045869 Content-Transfer-Encoding: 8bit References: <7f6i6f$k9j8@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 X-Trace: read2.inet.fi 924249599 194.142.160.130 (Fri, 16 Apr 1999 10:59:59 EET DST) Organization: Sonera Ltd iNET services MIME-Version: 1.0 NNTP-Posting-Date: Fri, 16 Apr 1999 10:59:59 EET DST Newsgroups: borland.public.jbuilder.java.language