-
Bug
-
Resolution: Unresolved
-
P3
-
10, 11, 17
As of JDK-8182577, ButtonModel interface has the method getGroup(). Previously, whenever getGroup() was needed, the model object required casting to DefaultButtonModel.
There are a couple of places where model object is cast to DefaultButtonModel before calling getGroup() method.
BasicButtonUI.ButtonGroupInfo.getButtonGroupInfo() (lines 717-719):
ButtonModel model = activeBtn.getModel();
if (!(model instanceof DefaultButtonModel))
return false;
There are a couple of places where model object is cast to DefaultButtonModel before calling getGroup() method.
BasicButtonUI.ButtonGroupInfo.getButtonGroupInfo() (lines 717-719):
ButtonModel model = activeBtn.getModel();
if (!(model instanceof DefaultButtonModel))
return false;
- relates to
-
JDK-8277202 Create a test to cover independent ButtonModel implementation for JToggleButton
-
- Open
-
-
JDK-8182577 Exception when Tab key moves focus to a JCheckbox with a custom ButtonModel
-
- Resolved
-
- links to