Search |
||
The ButtonGroup of my dreamsPosted by alexfromsun on August 23, 2006 at 10:34 AM PDT
I have fixed quite a lot of bugs and RFE's in Swing for Java 1.6 and don't really remember all of them, Let me introduce you the bug number 4226243 (and 10 related bugs) So why fixing it was so difficult ?We just should be able to move the focus and selection inside the RadioButtonGroup with help of arrow keys... That doesn't look like a hard problem But we also need to skip unselected radioButtons if we move focus from component to component pressing "Tab" button, Native ButtonGroup behaviours like a one component: you press "Tab" -> focus gets the selected button
This part turned out to be really problematic... The real killer was the fact that javax.swing.ButtonGroup is not a Swing component, Finally with great help of AWT team we found a workable fix It probably was a sad story, but the time wasn't spent in vain
Better ButtonGroup implementationPlease welcome JXButtonGroupPanel from SwingHelper project
You just add your buttons to JXButtonGroupPanel and it will do the rest of the work Please try it and share you opinion ! Note: Please read the Follow up blog»
Related Topics >>
Swing Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|