Article View: borland.public.jbuilder.java.swing
Article #10627Re: Reparenting from a JTabbedPane FROM A VERY FUSTRATED PERSON
From: Gavster McRavster
Date: Mon, 23 Aug 1999 00:00
Date: Mon, 23 Aug 1999 00:00
32 lines
1676 bytes
1676 bytes
why don't you clone the panel as a JComponent and then if you need to bin the original copy, just remove the tab and null all th referneces to the panel? Marc G. Smith <msmith@nospam.adc.metrica..co.uk> wrote in message news:7on4fd$80j7@forums.borland.com... > Hi, > > Basically I'm trying to take a JPanel(a view) that forms one of the tabs in > a JTabbedPane and shove it into a JFrame. Unfortuneately it doesn't seem to > work. > > If I reparent it from a parent JPanel to a JFrame or a JFrame to JFrame or > even a JFrame to a tab on JTabbedPane it works just fine. So I'm assuming > that the JTabbedPane is the culprit for my extreme displeasure. > > I tried everything on the view, revalidate, validate, repaint, doLayout, > setVisible and setEnabled, but none of these will get the thing to display. > > Can anyone save me before I throw my monitor out the window? > > > Cheers in advance, > Marc > >
Technical Details
Message-ID:
<935398519.9694.0.nnrp-08.c1c3e175@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7on4fd$80j7@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c6ad2c9ec7d742d8 X-Google-Attributes: gid111d45,public From: "Gavster McRavster" <gavinc@demon.net> Subject: Re: Reparenting from a JTabbedPane FROM A VERY FUSTRATED PERSON Date: 1999/08/23 Message-ID: <935398519.9694.0.nnrp-08.c1c3e175@news.demon.co.uk> X-Deja-AN: 516092010 X-NNTP-Posting-Host: gavinc.eng.demon.net:193.195.225.117 References: <7on4fd$80j7@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 935398519 nnrp-08:9694 NO-IDENT gavinc.eng.demon.net:193.195.225.117 X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing