return o1.getDice().getFaceCount()
- o2.getDice().getFaceCount();
}
});
dices.put(new Die(new DiceSingle(4)), DefaultDiceToolBar.ICON_D4_LARGE);
dices.put(new Die(new DiceSingle(6)), DefaultDiceToolBar.ICON_D6_LARGE);
dices.put(new Die(new DiceSingle(8)), DefaultDiceToolBar.ICON_D8_LARGE);
dices.put(new Die(new DiceSingle(10)), DefaultDiceToolBar.ICON_D10_LARGE);
dices.put(new Die(new DiceSingle(12)), DefaultDiceToolBar.ICON_D12_LARGE);
dices.put(new Die(new DiceSingle(20)), DefaultDiceToolBar.ICON_D20_LARGE);
dices.put(new Die(new DiceSingle(30)), DefaultDiceToolBar.ICON_D30_LARGE);
dices.put(new Die(new DiceSingle(100)), DefaultDiceToolBar.ICON_D100_LARGE);
JPanel radioPanel = new JPanel(new GridLayout(0, 1));
ButtonGroup group = new ButtonGroup();
for (Entry<Die, String> die : dices.entrySet()) {
JRadioButton d4Button = new JRadioButton(die.getKey().getDice()