🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Repainting JFrame

#18054
From: Pie'oh'Pah
Date: Thu, 13 Aug 1998 00:00
17 lines
1348 bytes
Hi all!

I tried to use a JFrame with contentPane (JPanel) and three SubPanes
(JPanel s too), contentPane uses BorderLayout. So far so good, the
layout Manager works well.
But I want the 3 subframes to be hidden as the user likes to (showing
just 1,2 or all 3). However, I try to make the one which shouldn't be
displayed invisible (by calling JPanel.setVisible(false) ) and then
calling this.doLayout(); However, it won't repaint correctly, I get
better results when resizing the frame, but still not perfect and the
performance is not good then (damn slow).
However, the left and middle panel are hiding, the right one doesn't
even think about disappearing...

Please help

Pie
Technical Details
Message-ID: <35D2E07E.31929497@iname.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,e099ce222b8c2f9c,start
X-Google-Attributes: gidf74b3,public
From: Pie'oh'Pah <messi@iname.com>
Subject: Repainting JFrame
Date: 1998/08/13
Message-ID: <35D2E07E.31929497@iname.com>
X-Deja-AN: 380730012
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@Austria.EU.net
X-Trace: fleetstreet.Austria.EU.net 903012439 25368 193.81.167.2 (13 Aug 1998 12:47:19 GMT)
Organization: EUnet Austria
Mime-Version: 1.0
NNTP-Posting-Date: 13 Aug 1998 12:47:19 GMT
Newsgroups: borland.public.jbuilder.java.language