summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/Choice1.inc
blob: 3be2ed41ae937188cbf6be3f156546eb0f8ef567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Choice1.inc */

private void customizeLayout(Panel panel)
{
  panel.setLayout(new FlowLayout());
  Choice choice = new Choice();
  choice.addItemListener(this);
  choice.add("rot");
  choice.add("gr�n");
  choice.add("gelb");
  choice.add("blau");
  choice.add("rosa");
  choice.add("lila");
  panel.add(choice);
}