Re: Size of a radiobutton



Andre Rothe <andre.rothe@xxxxxxxxxxxxxxxxxxxx> writes:

Hi,

Is there a possibility to get the size of a radio button? You can use
getWidth() and getHeight() of a JRadioButton, but this comes from the
component, which will be resized depending on the layout you use. I need
the size of the clickable unchangable circle (which size depends on the
look and feel).

But why do you want to get that?

Remember that, the native behavior (for example, on the Mac and Windows)
of check boxes and radio buttons is that they are active if the icon OR
the text label is clicked. This behavior is, of course, highly useful
for user productivity, since it gives a much larger target to hit with
the mouse button. (See Fitt's law, e.g.,
<http://en.wikipedia.org/wiki/Fitts'_law>,
<http://www.asktog.com/basics/firstPrinciples.html>)

Mac users, in particular, would tend to notice that the behavior isn't
quite what they expected. But I suppose that this

--
Thomas A. Russ, USC/Information Sciences Institute
.


Quantcast