🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18674

graphics drawing on components

#18674
From: Tad Frysinger
Date: Fri, 15 May 1998 00:00
23 lines
1368 bytes
I am interested if anyone knows of a way to draw graphics primitives on a 
container (heavyweight or lightweight) that contains heavyweight 
components, such that those primitives appear on top of those contained 
components.

From my review, it appears that rendering 
myPanel.getGraphics().drawRect() (for example) always has the rectangle 
appearing *behind* heavyweight components.  Does anyone have a way to do 
this where the rectangle obscures a heavyweight component?

I've got what I need working with lightweight components, but for various 
reasons I really need to work with heavyweight components instead.

Actually, I suppose I don't need to use graphics primitives - what I need 
is the ability to draw/erase rectangles very quickly, without disturbing 
what lies underneath them.  Using setXORmode with the graphics methods 
for drawing seemed the best way to accomplish this, but I'm open to other 
suggestions.

Thanks,

Tad
Technical Details
Message-ID: <MPG.fc61db3b2f180989801@forums.borland.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: f74b3,4fab21b1cd472fd7,start
X-Google-Attributes: gidf74b3,public
From: tfrysinger@earthlink.net (Tad Frysinger)
Subject: graphics drawing on components
Date: 1998/05/15
Message-ID: <MPG.fc61db3b2f180989801@forums.borland.com>
X-Deja-AN: 353559800
Organization: FreeZone Enterprises
Newsgroups: borland.public.jbuilder.java.language