FileDocCategorySizeDatePackage
DiceService.javaAPI DocExample1124Sat Jan 08 12:06:56 GMT 2005None

DiceService

public class DiceService extends Object implements Service

Fields Summary
JLabel
label
JComboBox
numOfDice
Constructors Summary
Methods Summary
public javax.swing.JPanelgetGuiPanel()

       JPanel panel = new JPanel();
       JButton button = new JButton("Roll 'em!");
       String[] choices = {"1", "2", "3", "4", "5"};
       numOfDice = new JComboBox(choices);
       label = new JLabel("dice values here");
       button.addActionListener(new RollEmListener());
       panel.add(numOfDice);
       panel.add(button);
       panel.add(label);
       return panel;