Article View: aus.computers.java
Article #1256Forcing refresh of Screen with add/remove components.
From: Nathan
Date: Thu, 28 Jan 1999 00:00
Date: Thu, 28 Jan 1999 00:00
17 lines
1010 bytes
1010 bytes
Hey there, I've found that it is a pain in the neck trying to get java to refresh things after you remove/add new components.. I found that if you call both (in that order) doLayout(); paintComponents(Graphics g) on the container then it will refresh. Hope someone finds it useful. Nathan PS Let's get some more activity on this group!! -- To reply to me remove the REMOVE1234 from address. :) Isn't it sad we have to do this! Fight spam!
Technical Details
Message-ID:
<01be4a7b$975649c0$LocalHost@default>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,31b411d80069d70e,start X-Google-Attributes: gid10d6db,public From: "Nathan" <KinsalisREMOVE1234@hotmail.com> Subject: Forcing refresh of Screen with add/remove components. Date: 1999/01/28 Message-ID: <01be4a7b$975649c0$LocalHost@default> X-Deja-AN: 437798172 Cache-Post-Path: mercedes.iniaccess.net.au!unknown@inia-te02.laa.com.au X-Trace: 28 Jan 1999 13:10:36 -0800, mailer01.iniaccess.net.au Organization: Desiin Pty Ltd T/A INIAccess Newsgroups: aus.computers.java