标签:visible set status wing ant test tco str exit
package cn.rushangw.lesson06;
import javax.swing.*;
import java.awt.*;
public class TestComboboxDemo01 extends JFrame {
public TestComboboxDemo01(){
Container container = getContentPane();
JComboBox status = new JComboBox();
status.addItem(null);
status.addItem("正在热映");
status.addItem("即将上映");
status.addItem("已下架");
container.add(status);
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
setVisible(true);
setBounds(1,1,500,500);
}
public static void main(String[] args) {
new TestComboboxDemo01();
}
}
标签:visible set status wing ant test tco str exit
原文地址:https://www.cnblogs.com/nigustudent/p/14814781.html