🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Setting Caption for Panel or JPanel

#18100
From: Paul Furbacher
Date: Wed, 19 Aug 1998 00:00
16 lines
1081 bytes
Michael Nguyen wrote:
> 
> Hi,
> 
> Is there a way to set the caption for either java.awt.Panel or Swing's JPanel
> so that they would provide the groupbox 's look ?  Thanks for the info.

With JPanel, I think you can set a "titled" border to 
the "border" property.  Declare the following as a member
of your frame class:

  Border titleBorder = BorderFactory.createTitledBorder(...); // please fill
in the params


Paul Furbacher
Technical Details
Message-ID: <35DB548D.7A5A8941@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35DB3634.86E4A8EC@home.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c9e006589591aeb2,start
X-Google-Attributes: gidf74b3,public
From: Paul Furbacher <pf@bilbo.bio.purdue.edu>
Subject: Re: Setting Caption for Panel or JPanel
Date: 1998/08/19
Message-ID: <35DB548D.7A5A8941@bilbo.bio.purdue.edu>
X-Deja-AN: 382793925
Content-Transfer-Encoding: 7bit
References: <35DB3634.86E4A8EC@home.com>
To: Michael Nguyen <michaelmn@home.com>
Content-Type: text/plain; charset=us-ascii
Organization: Biological Sciences, Purdue Univ.
Mime-Version: 1.0
Reply-To: pf@bilbo.bio.purdue.edu
Newsgroups: borland.public.jbuilder.java.language