• 各位大佬请教一个java问题,怎么在图形界面中设置多个下拉列表,我这里
  • java

package com.java.choose;
import java.awt.*;
public class ChoiceList extends Frame {
Choice choice;
Label select;
ChoiceList() {
setLayout(new FlowLayout());
choice=new Choice();
select=new Label("地区:");
choice.add("广州");
choice.add("上海");
choice.add("北京");
add(select);
add(choice);
setSize(300,150);
setVisible(true);
}

public static void main(String args[]) {
ChoiceList testC=new ChoiceList();
}
}


  • 就几件    2020-06-29 10:52:33
  • 阅读 1666    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信