🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing JPanels in a JTabbedPane

#9404
From: James Cook
Date: Tue, 11 Apr 2000 00:00
33 lines
1499 bytes
We worked around the problem, by not removing the currently displayed panel.
It is more work, but it helped us in our situation. I'm not sure if this is
an official bug yet.

jim

Daniel H�gg <daniel.hagg@factel.se> wrote in message
news:38F31D2E.E6CF3B7B@factel.se...
> Hi!
> I am trying to change panels in a JTabbedPane. But the panels are
> sometimes not repainted properly.
>
> All I am doing is:
>
>       m_TabbedPane.removeAll();
>       m_TabbedPane.add(m_NewPanel, "NewComponent");
>
> But if the new selected panel happens to be the same as the old
> selected panel, it isn't repainted properly. I have tried to force the
> JTabbedPane to repaint but without success. I have tried all of the
> following:
>
>       m_TabbedPane.invalidate();
>       m_TabbedPane.validate();
>       m_TabbedPane.revalidate();
>       m_TabbedPane.repaint();
>
> Does anybody know, how to do it?
>
>  /
> / Daniel
>
>
Technical Details
Message-ID: <8cv9ir$mj54@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38F31D2E.E6CF3B7B@factel.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,15a0beb56f74a5c1
X-Google-Attributes: gid111d45,public
From: "James Cook" <jimcook.remove.for.spam@iname.com>
Subject: Re: Changing JPanels in a JTabbedPane
Date: 2000/04/11
Message-ID: <8cv9ir$mj54@bornews.borland.com>
X-Deja-AN: 609645689
References: <38F31D2E.E6CF3B7B@factel.se>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing