Re: Problem with Buttons
- From: "Kenneth P. Turvey" <kt-usenet@xxxxxxxxxxxxxxxxxx>
- Date: 21 May 2008 03:32:43 GMT
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.
--
Kenneth P. Turvey <kt-usenet@xxxxxxxxxxxxxxxxxx>
.
- Follow-Ups:
- Re: Problem with Buttons
- From: Knute Johnson
- Re: Problem with Buttons
- References:
- Problem with Buttons
- From: Kenneth P. Turvey
- Re: Problem with Buttons
- From: Knute Johnson
- 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):