🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Bug in JBuilder2? Setting a Border [for Swing components]

#13093
From: Paul Furbacher
Date: Sun, 20 Sep 1998 00:00
41 lines
2027 bytes
Heiko Groftschik wrote:
> 
> Hi there!
> 
> I just bought JBuilder2 and it's a really
> good tool, especially the designer...
> but I've problems setting the border of a component or a panel.
> The border-field in the design-tool always displays <without>. 
>
> I can't set a e.g. EmptyBorder or so. If I do it 
> in my Source with component.setBorder it isn't
> displayed neither in the Designer-Preferences-Tab nor in the
> graphical-representation of my frame. But starting
> the frame the border shows up--- of cause...
> mmm, what's to do?
> Is this a bug, or can I set a border within the Designer????

It's not a bug.  It's a lack of a custom property editor --
well, sort of.  

What you can do is define the borders you wish to 
use in the member declaration section (where JBuilder 
writes statements such as 

  GridControl gridControl1 = new GridControl();

You write:

  Border bevelBorder = BorderFactory.create...(...); 
  // I don't have the PC on, so this is from memory.
  // If you "Browse symbol at cursor" with the cursor in 
  // "BorderFactory", you will easily be able to finish
  // the above statement.

Do this for all the borders you need for your frame.  
Quite magically, once you have done this, <none> will 
be replaced by a list of the names of all the borders 
you have created.


Paul Furbacher
Technical Details
Message-ID: <36051088.58D4C75C@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3604D790.F80DB3@uni-koblenz.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,58524635a4bfa457
X-Google-Attributes: gid111d45,public
From: Paul Furbacher <pf@bilbo.bio.purdue.edu>
Subject: Re: Bug in JBuilder2? Setting a Border [for Swing components]
Date: 1998/09/20
Message-ID: <36051088.58D4C75C@bilbo.bio.purdue.edu>
X-Deja-AN: 392989418
Content-Transfer-Encoding: 7bit
References: <3604D790.F80DB3@uni-koblenz.de>
To: Heiko Groftschik <aurum@uni-koblenz.de>
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