package com.java.choose;
import java.awt.*;
public class ChoiceList extends Frame {
Choice choice;
Label select;
ChoiceList() {
setLayout(new FlowLayout());
choice=nY X P i , :ew Choice();
select=new Label("地区:j l P");
choice.add("广州z I i I % c % l x");
cho% * r tice.add("上海");
choiceL s a.add("北京");
add(select);
add(choice);
setSize(300,150);
setVisible(true);
}
public static void main(String args[]) {
Choi; M eceList testC=new ChoiceList();
}
}
发表评论