๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: paint() not getting called

#3112
From: Ing. Sergio Alberto Rodriguez Ve...
Date: Thu, 07 May 1998 00:00
35 lines
1357 bytes
Try using update()

Dan MacLeod escribi๏ฟฝ en mensaje <6il8sg$rmv5@forums.borland.com>...
>I have a simple class that scrolls text across the screen. Under Netscape
>everything works fine, however under Internet Explorer the repaint() never
>calls the paint();  Does anyone have any ideas?
>
>Thanks,
>
>
>
>  public void run() {
>    while(true)
>      size= this.getSize();
>      width = size.width;
>
>     height = ((size.height - stringHeight)/2)+ stringHeight -4;
>      startX -=2.
>      if(startX + (ratio * message.length()) <=0) {
>        startX  = width - message.length();
>      }
>      repaint();
>      try {
>        Thread.sleep(1000);
>      }catch(InterruptedException e) {System.out.println("Thread sleep
>interrupted.");}
>    }
>  }
>--
>Dan MacLeod
>
>dmacleod@gate.net
>
>
Technical Details
Message-ID: <6itp3q$tl1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6il8sg$rmv5@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,a76622c63313d46c
X-Google-Attributes: gid1089d0,public
From: "Ing. Sergio Alberto Rodriguez Venegas" <rodrigus@infosphere-inc.com>
Subject: Re: paint() not getting called
Date: 1998/05/07
Message-ID: <6itp3q$tl1@forums.borland.com>
X-Deja-AN: 351294901
References: <6il8sg$rmv5@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api