🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Panel in a SplitPane doesn't draw itself

#3503
From: Greg Hamer
Date: Tue, 09 Dec 1997 00:00
20 lines
1193 bytes
Whenever you add or remove something in a showing container, you need to call
validate( ) on that container to get it to refresh (the split panel in your
example).

Bob Lemm wrote:

> I have a SplitPane which has a jbcl TreeControl in the left pane, and a
> normal panel in the right pane. When I make a selection in the tree control,
> I remove the contents of the right pane, and replace it with a new panel.
> But that panel doesn't draw itself until I move the SplitPane's divider. All
> I really have to do is click the divider without moving it, and the panel
> redraws itself.
>
> What am I forgetting to make the panel refresh? I've tried repaint(), and a
> myriad of other things, but I can't get it right!
>
> Thanks,
> Bob Lemm
> rlemm@hiflite.com
Technical Details
Message-ID: <348E1487.BA426531@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <66jpob$n35@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,763733137979b671
X-Google-Attributes: gid1089d0,public
From: Greg Hamer <ghamer@borland.com>
Subject: Re: Panel in a SplitPane doesn't draw itself
Date: 1997/12/09
Message-ID: <348E1487.BA426531@borland.com>
X-Deja-AN: 296809627
References: <66jpob$n35@forums.borland.com>
Organization: None
Newsgroups: borland.public.jbuilder.java.api