Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages
Started by Matthew Sweet
Fri, 21 Nov 2003 23:46
Overriding JLabel Geometry
Author: Matthew Sweet
Date: Fri, 21 Nov 2003 23:46
Date: Fri, 21 Nov 2003 23:46
6 lines
1174 bytes
1174 bytes
Does anyone have any ideas or points of reference to go about overiding the geometry of a JLabel component. So if I have a JLabel that is bevelled and looks like a square, I want it to look like a hexagon. Thanks, Matthew
Re: Overriding JLabel Geometry
Author: John McGrath [TeamB]
Date: Sat, 22 Nov 2003 17:19
Date: Sat, 22 Nov 2003 17:19
17 lines
1393 bytes
1393 bytes
On 11/21/2003 at 6:46:53 PM, Matthew Sweet wrote:
> Does anyone have any ideas or points of reference to go about
> overiding the geometry of a JLabel component. So if I have a JLabel
> that is bevelled and looks like a square, I want it to look like a
> hexagon.
It sounds like you need to create your own Border class.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: Overriding JLabel Geometry
Author: Paul Furbacher
Date: Sat, 22 Nov 2003 17:20
Date: Sat, 22 Nov 2003 17:20
26 lines
1683 bytes
1683 bytes
Matthew Sweet wrote:
> Does anyone have any ideas or points of reference to go
> about overiding the geometry of a JLabel component. So if
> I have a JLabel that is bevelled and looks like a square,
> I want it to look like a hexagon.
Google "non-rectangular jlabel".
See the PDF Chapter 5, among other hits.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads