Re: Problem with Buttons
- From: Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 20 May 2008 19:50:38 -0700
Kenneth P. Turvey wrote:
I'm trying to convince Java to create a button that is exactly the same size as the image that I'm using for it. I've set the Insets to (0, 0, 0, 0), but this isn't working. There is still some kind of border around the button.
Do I need to write my own button class to do this, or is it possible with JButton?
Any hints would be appreciated.
Thanks,
I would imagine that the decorations on a JButton are very look and feel dependent. If you really need it to be a certain size, write your own. It is not that hard.
Why do you want it to be a specific size?
--
Knute Johnson
email s/knute/nospam/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.
- Follow-Ups:
- Re: Problem with Buttons
- From: Kenneth P. Turvey
- Re: Problem with Buttons
- From: Kenneth P. Turvey
- Re: Problem with Buttons
- References:
- Problem with Buttons
- From: Kenneth P. Turvey
- Problem with Buttons
- Prev by Date: Problem with Buttons
- Next by Date: Re: Problem with Buttons
- Previous by thread: Problem with Buttons
- Next by thread: Re: Problem with Buttons
- Index(es):