🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

DrawString Question

#2470
From: James A. Schulz
Date: Thu, 09 Nov 2000 00:00
12 lines
821 bytes
Why doesn't the code below effectively erase the "this is a test" string?

public void paint(Graphics g){
    g.drawString("this is a test",20,120);
    g.drawString("                ",20,120);
  }

thanks,

James

P.S.  what is the right way to erase a string?
Technical Details
Message-ID: <8uek57$5ie6@bornews.inprise.com>
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,3c0ed2c868557b65,start
X-Google-Attributes: gid1089d0,public
From: "James A. Schulz" <jaschulz@wiseware.com>
Subject: DrawString Question
Date: 2000/11/09
Message-ID: <8uek57$5ie6@bornews.inprise.com>
X-Deja-AN: 691671334
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "James A. Schulz" <jaschulz@wiseware.com>
Newsgroups: borland.public.jbuilder.java.api