Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3428

Re: Size of a radiobutton

From "tar" <tar@THRWHITE.remove-dii-this>
Subject Re: Size of a radiobutton
Message-ID <ymifxtagcjq.fsf@blackcat.isi.edu> (permalink)
Newsgroups comp.lang.java.gui
References <fumvgj$4gk$1@aioe.org>
Date 2011-04-27 15:44 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Andre Rothe <andre.rothe@imise.uni-leipzig.de> 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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Size of a radiobutton "Andre Rothe" <andre.rothe@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
  Re: Size of a radiobutton "Frank Meyer" <frank.meyer@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
  Re: Size of a radiobutton "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000

csiph-web