Re: Problem with Buttons



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>
.


Quantcast