🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Creating a border around a JApplet - newbie

#8607
From: Rich Wilkman
Date: Wed, 02 Aug 2000 00:00
24 lines
1513 bytes
Jerel:

Well, you could take your Applet and stick in in the center of a Panel
with Border Layout.  Then you could stick Labels into North, South, East
and West with no text and a background color of what you'd like.

Or, you can leave "pretty stuff" and external display out of your Applet
and handle it in the HTML.  Make a 1 cell table, set the border width
and color to what you want and stick your applet into the table cell.

I'd go with the second; it's a lot easier to maintain when you decide to
change the colors, etc.

-Rich

Jerel Thompson wrote:
> 
> Hello,
> 
>     I have my first java applet I made and I would like to put a small
> border around it so it stands out from the web page a little more.  How
> would I go about doing this?  I looked at the inset property....but I am not
> sure if that is the correct thing to use.  An example would be very nice.
> Thanks.
Technical Details
Message-ID: <39882DA0.C7777AA8@formlessvoid.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39871c9c$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d62d666f3ff5d549
X-Google-Attributes: gid111d45,public
From: Rich Wilkman <richw@formlessvoid.com>
Subject: Re: Creating a border around a JApplet - newbie
Date: 2000/08/02
Message-ID: <39882DA0.C7777AA8@formlessvoid.com>
X-Deja-AN: 653619328
Content-Transfer-Encoding: 7bit
References: <39871c9c$1_2@dnews>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 2 Aug 2000 07:08:15 -0800, 165.227.58.108
MIME-Version: 1.0
Reply-To: richw@formlessvoid.com
Newsgroups: borland.public.jbuilder.java.swing