如何获取 ButtonGroup 中所有选定 JToggleButtons 的数量?
ButtonGroup bGroup = new ButtonGroup();
bGreen = new JToggleButton("Green");
bYellow = new JToggleButton("Yellow");
bRed = new JToggleButton("Red");
bGroup.add(bGreen);
bGroup.add(bYellow);
bGroup.add(bRed);