🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

What I did Re: Fonts with opaque backgrounds

#2644
From: Hilton Evans
Date: Tue, 29 Aug 2000 00:00
20 lines
1493 bytes
"John P. McGrath" <JPMcGrath@fast.net> wrote in message
news:MPG.1414de521d83cd3989b03@forums.borland.com...
> On 25 Aug 2000 08:44:25 +0200, Tor Iver Wilhelmsen wrote:
>
> > "Hilton Evans" <hfevans@SPAMNOT.ici.net> writes:
> >
> You will either need to use a
> > (J)Label, or set white color and call fillrect after

    Following Tor's suggestion, I used
    FontMetrics.getStringBounds to get a Rectangle2D.
    I then used Rectangle2D.getBounds to create a rectangle
    which was then fillrected over the target area.
    Thanks to all who made suggestions.

--
Hilton Evans
-----------------------------------------------
ChemPen Chemical Structure Software
http://home.ici.net/~hfevans/chempen.htm
Technical Details
Message-ID: <39abb1de_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39a52aa4$1_2@dnews> <MPG.140fab7a1dbe361d989b00@forums.borland.com> <39a5e8f5_2@dnews> <u3djtlu0m.fsf@sds.no> <MPG.1414de521d83cd3989b03@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,a9e1301e9509b678
X-Google-Attributes: gid1089d0,public
From: "Hilton Evans" <hfevans@SPAMNOT.ici.net>
Subject: What I did Re: Fonts with opaque backgrounds
Date: 2000/08/29
Message-ID: <39abb1de_2@dnews>
X-Deja-AN: 663877113
Content-Transfer-Encoding: 7bit
References: <39a52aa4$1_2@dnews> <MPG.140fab7a1dbe361d989b00@forums.borland.com> <39a5e8f5_2@dnews> <u3djtlu0m.fsf@sds.no> <MPG.1414de521d83cd3989b03@forums.borland.com>
X-Trace: 29 Aug 2000 05:51:42 -0800, 207.180.40.134
X-MSMail-Priority: Normal
X-Priority: 3
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Newsgroups: borland.public.jbuilder.java.api