Adding radio buttons to a button group limits the user to selecting any one radio button (or none).
Is there a way of limiting the user to selecting up to n radio buttons, where n is more than 1 but less than the total number of buttons?
In my current case, I am converting a 2D point on a drawing into the theoretical 3D space that the 2D drawing describes. Any one 2D point might represent multiple points in 3D space, so the user has the option to constrain the 3D point by specifying the value of the 3D point in a maximum of 2 dimensions. Obviously all 3 dimensions does not make sense. The dimensions to be constrained are selected using radio buttons.
Does Swing allow for an easy way to implement this?