🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: More than one button in a JtabbedPane

#1545
From: Mynor Paredes
Date: Tue, 28 Oct 2003 21:51
37 lines
2204 bytes
"Tad Frysinger [TeamB]" <tfrysinger@earthlink.net> wrote in message
news:3f9e89bd$1@newsgroups.borland.com...
> Tony wrote:
>
> > Hi,
> >
> > I'm trying to place three buttons at the bottom of a jtabbedpane (i.e.
> > apply, check, and cancel). The present layout is border layout and won't
> > let me place more than one button in the "SOUTH" position at the bottom.
I
> > temporarily tried to invoke other layouts (i.e. gridbag) but if I do I
get
> > warnings during compilation and when I run the 3 tabbed panes I've
created
> > completely disappear. Is there someway I can get 3 buttons in the
"SOUTH"
> > position in border layout (i.e. a button group perhaps - how would I
create
> > one if this would work)? Any help would be very welcome.
> >
> > regards
> >
> > Tony.
> Is the BorderLayout in a panel inside the JTabbedPane, or is the
> BorderLayout the manager for a panel in which the JTabbedPane sits?

Yes, you have to update the property layout for the JPanel, not the
JTabbedPane.
The hierarchy is JTabbedPane contains a component JPanel, and the JPanel has
"x" layout.

Rgds,
Mynor.
>
> -- 
> Tad Frysinger [TeamB]
>
Technical Details
Message-ID: <3f9ee4d9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <3f9d2d40@newsgroups.borland.com> <3f9e89bd$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,fd993ebaa5b75ad9
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-10-28 13:52:53 PST
Reply-To: "Mynor Paredes" <paredes_mynor@hotmail.com>
From: "Mynor Paredes" <paredes_mynor@hotmail.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <3f9d2d40@newsgroups.borland.com> <3f9e89bd$1@newsgroups.borland.com>
Subject: Re: More than one button in a JtabbedPane
Date: Tue, 28 Oct 2003 13:51:22 -0800
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 66.122.154.62
Message-ID: <3f9ee4d9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067377881 66.122.154.62 (28 Oct 2003 13:51:21 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail