Package net.alteiar.beans.dice

Examples of net.alteiar.beans.dice.DiceSingle


            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()
View Full Code Here

TOP

Related Classes of net.alteiar.beans.dice.DiceSingle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.