🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Fonts with opaque backgrounds

#2641
From: John P. McGrath
Date: Mon, 28 Aug 2000 00:00
20 lines
1182 bytes
On 25 Aug 2000 08:44:25 +0200, Tor Iver Wilhelmsen wrote:

> "Hilton Evans" <hfevans@SPAMNOT.ici.net> writes:
> 
> >     No. I want a string's white background to paint over the existing
> >     background. WinAPI has a setbkmode to do this.
> 
> Strings don't have backgrounds. You will either need to use a
> (J)Label, or set white color and call fillrect after computing the
> size based on fontmetrics.
> 

It should be fairly easy to create a Component to do this.  But it has 
been rather long since I have done non-Swing UI work, so I do not think I 
can accurately come up with  the details.

-- 
Regards,

John McGrath
Technical Details
Message-ID: <MPG.1414de521d83cd3989b03@forums.borland.com>
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>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,a9e1301e9509b678
X-Google-Attributes: gid1089d0,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: Fonts with opaque backgrounds
Date: 2000/08/28
Message-ID: <MPG.1414de521d83cd3989b03@forums.borland.com>
X-Deja-AN: 663742371
References: <39a52aa4$1_2@dnews> <MPG.140fab7a1dbe361d989b00@forums.borland.com> <39a5e8f5_2@dnews> <u3djtlu0m.fsf@sds.no>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api