🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Repainting woes

#17644
From: Paul Gifford
Date: Tue, 13 Oct 1998 00:00
28 lines
1383 bytes
  I have an applet that displays an image.  Here's my problem:

  I run it in the appletviewer.  I click on the output window (the DOS
window) to bring that window to the front.  I then click on the
appletviewer window to bring that to the front.  Everything displays
normally, except the portion of my image that was covered by the DOS
window...that portion is blank.  If I bring a full-screen app to the
front by clicking on the task bar, then bring back the appletviewer by
the same method, the image is gone.  However, if I minimize the
appletviewer, then maximize it, my image returns.  Here is the paint
function I use:

  public void paint(Graphics g)
  {
    super.paint(g);

    if (smImageLoaded)
      smallRefresh();
  }

  All smallRefresh does is paint the image.  Obviously I must override
something else to get my image to paint...but what?  How do I get my
image to repaint when the rest of the applet repaints itself?

TIA

p
Technical Details
Message-ID: <3623756a.2677294@forums.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: f74b3,6fa66333c2a360a0,start
X-Google-Attributes: gidf74b3,public
From: paul.gifford@ibm.take.me.outta.here.net (Paul Gifford)
Subject: Repainting woes
Date: 1998/10/13
Message-ID: <3623756a.2677294@forums.inprise.com>
X-Deja-AN: 400652947
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language