Re: Problem with Buttons
- From: Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 20 May 2008 21:21:17 -0700
Kenneth P. Turvey wrote:
On Tue, 20 May 2008 19:50:38 -0700, Knute Johnson wrote:
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?
After starting to write my own, then realizing that I will need one class for regular buttons and another for toggle buttons and that the complexity, although not high, is higher than I was ready to invest time in, I realized that I can achieve what I want by simply setting the border to null. I know this isn't the recommended way of handling borders in swing, but I couldn't think of a situation where this would be a problem.
I don't know, sounds like it solves your problem.
--
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
.
- References:
- Problem with Buttons
- From: Kenneth P. Turvey
- Re: Problem with Buttons
- From: Knute Johnson
- Re: Problem with Buttons
- From: Kenneth P. Turvey
- Problem with Buttons
- Prev by Date: Re: Problem with Buttons
- Next by Date: Re: Problem with Buttons
- Previous by thread: Re: Problem with Buttons
- Next by thread: Re: Problem with Buttons
- Index(es):