🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12958

ghost images

#12958
From: John Bartholdi
Date: Tue, 13 Oct 1998 00:00
92 lines
4034 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_00EE_01BDF694.BAB5A0E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I have a jbcl.control.BevelPanel that includes a =
jbcl.control.NavigatorControl in the North, another BevelPanel in the =
Center, and a jbcl.control.StatusBar in the South.

My program draws on the BevelPanel in response to mouse clicks on that =
BevelPanel (a different drawing for each successive click). To =
accomplish the drawing I overrode the paintComponent method of the =
BevelPanel.

The problem is that successive images are repainted in the wrong place. =
Everything is shifted: including the NavigatorControl and the StatusBar, =
which seems especially puzzling to me because they know nothing about =
the drawing in the BevelPanel.

Have I somehow mixed light and heavy-weight components here? (All this =
sits on a jbcl.control.TabsetPanel.) The documentation suggests that all =
these are lightweight components.

I have tried calls to invalidate() followed by validate() but all to no =
avail.

Can anyone suggest what might be the problem here?

Thanks in advance,

John

------=_NextPart_000_00EE_01BDF694.BAB5A0E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hello,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>I have a jbcl.control.BevelPanel =
that includes a=20
jbcl.control.NavigatorControl in the North, another BevelPanel in the =
Center,=20
and a jbcl.control.StatusBar in the South.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>My program draws on the BevelPanel =
in response=20
to mouse clicks on that BevelPanel (a different drawing for each =
successive=20
click). To accomplish the drawing I overrode the paintComponent method =
of the=20
BevelPanel.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>The problem is that successive =
images are=20
repainted in the wrong place. Everything is shifted: including the=20
NavigatorControl and the StatusBar, which seems especially puzzling to =
me=20
because they know nothing about the drawing in the =
BevelPanel.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Have I somehow mixed light and heavy-weight =
components here?=20
(All this sits on a jbcl.control.TabsetPanel.) The documentation =
suggests that=20
all these are lightweight components.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I have tried calls to invalidate() followed by =
validate() but=20
all to no avail.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Can anyone suggest what might be the problem=20
here?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks in advance,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>John</FONT></DIV></BODY></HTML>

------=_NextPart_000_00EE_01BDF694.BAB5A0E0--
Technical Details
Message-ID: <6vvnnm$ft717@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: 111d45,c1db9700e9c1da60,start
X-Google-Attributes: gid111d45,public
From: "John Bartholdi" <john.bartholdi@isye.gatech.edu>
Subject: ghost images
Date: 1998/10/13
Message-ID: <6vvnnm$ft717@forums.borland.com>
X-Deja-AN: 400623117
Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EE_01BDF694.BAB5A0E0"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing