🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JButton shapes

#10956
From: savithari
Date: Wed, 21 Jul 1999 00:00
25 lines
1545 bytes
Tor,
   Do you by any chance have an example of this ?

Thanks
-narahari

n article <u7lnvg5yz.fsf@sds.no>,
  Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> wrote:
> David <david.v.clark@lmco.com> writes:
>
> > Has anyone created round JButtons?  I would like the functionality
of a
> > JButton, but would like to be able to create different shapes.  I
am new
> > to graphics in Java and don't really know where to start.
>
> Subclass JButton, overriding paintBorder() (to paint
> differently-shaped borders) and contains(x,y) (to tell Java whether a
> click inside the Component's rectangle should count as a click on the
> component itself, or if it's outside the shape).
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Technical Details
Message-ID: <7n5evv$96c$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3793564C.6249F864@lmco.com> <u7lnvg5yz.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,8575a0a7ae35ef41
X-Google-Attributes: gid111d45,public
From: savithari@my-deja.com
Subject: Re: JButton shapes
Date: 1999/07/21
Message-ID: <7n5evv$96c$1@nnrp1.deja.com>
X-Deja-AN: 503680417
References: <3793564C.6249F864@lmco.com> <u7lnvg5yz.fsf@sds.no>
X-Http-Proxy: 1.0 MA-ATL05, 1.0 maverick.manhattanassociates.com:3128 (Squid/1.2.beta22), 1.0 x36.deja.com:80 (Squid/1.1.22) for client unknown, 208.192.214.11
Organization: Deja.com - Share what you know. Learn what you don't.
X-Article-Creation-Date: Wed Jul 21 21:44:35 1999 GMT
X-MyDeja-Info: XMYDJUIDsavithari
Newsgroups: borland.public.jbuilder.java.swing
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)