Article View: borland.public.jbuilder.java.language
Article #15922Which one is correct?
From: John l.yn
Date: Fri, 16 Apr 1999 00:00
Date: Fri, 16 Apr 1999 00:00
20 lines
950 bytes
950 bytes
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!
Best Regards!
John l.yn
Technical Details
Message-ID:
<7f6i6f$k9j8@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a7b199d28b1928f8,start X-Google-Attributes: gidf74b3,public From: "John l.yn" <lyn926@usa.net> Subject: Which one is correct? Date: 1999/04/16 Message-ID: <7f6i6f$k9j8@forums.borland.com> X-Deja-AN: 467012244 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.language