🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How do set a border object for Swing components in JBuilder?

#13287
From: Paul Furbacher
Date: Wed, 19 Aug 1998 00:00
22 lines
1487 bytes
Sol Irvine wrote:
> 
> Is there any way to set a border object from the inspector in the Visual
> Designer? There's a box for it but it just seems to stay at null no
> matter what I try...

Yes, but not through the expected property editor route.
You have to first write in the member declaration section:

  Border loweredBevelBorder = BorderFactory.BevelBorder(BevelBorder.LOWERED);  
  Border raisedBevelBorder = BorderFactory.BevelBorder(BevelBorder.RAISED);

and so on, for the types of borders you would like to see in
the Border popup.  Someone was putting together a custom property
editor for Border, but never got back to the group with the finished
result.  

This same technique works for many of the Swing component properties
which show <none> in the drop-down list.


Paul Furbacher
Technical Details
Message-ID: <35DACCEC.166B8C41@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35DA4C36.AC86244@manhattanintranet.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e65dcffdd495452d
X-Google-Attributes: gid111d45,public
From: Paul Furbacher <pf@bilbo.bio.purdue.edu>
Subject: Re: How do set a border object for Swing components in JBuilder?
Date: 1998/08/19
Message-ID: <35DACCEC.166B8C41@bilbo.bio.purdue.edu>
X-Deja-AN: 382621893
Content-Transfer-Encoding: 7bit
References: <35DA4C36.AC86244@manhattanintranet.com>
To: Sol Irvine <sirvine@popd.ix.netcom.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.swing