Following code snippet shows how to use java.awt.Choice.

Java Code:
 public void init() {
    Choice ch;
    ch = new Choice();
    ch.addItem("1");
    ch.addItem("2");
    ch.addItem("3");
    ch.addItem("4");
    ch.addItem("5");
    add(ch);
  }