我国国庆节,太阳直射点的位置及其移动的方向正确的是[ ]
A、在北半球,并向北移动
B、在南半球,并向南移动
C、在北半球,并向南移动
D、在南半球,并向北移动
答案:B
传统土炒时常用的土是()。
A.陈壁土
B.灶心土
C.黄土
D.赤石脂
在程序中,使用适当的布局管理器,在Frame框的North位置添加一句提示信息,在South位置添加一个单行文本框,在这个文本框中输入的内容将会显示在Center位置。运行结果如下图所示。 注意:请勿修改main()主方法和其他已有语句内容,仅在横线处填入适当语句。
import java.awt.*; import java.awt.event.*; public class simple extends Frame public static void main(String[] args) simple frame=new simple("simple"); frame.init(); frame.setSize(300,300); frame.show();public simple(String name) super(name); addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent e) ______; );public void init() setLayout(new______); Label labelTitle=new Label("在本文框中输入字符串, 可以早Frame中间显示"); Label showTextLabel=new Label(); TextField textField=new TextField("请在这里输入字符串"); textField.addActionListener(new AddStringListener(showTextLabel, textField)); add("North", labelTitle); add("Center", showTextLabel); add("South", textField); class AddStringListener implements ActionListener Label label;TextField textField;public AddStringListener(Label label, TextField textField) this.label=label; this.textField=textField;public void actionperformed(ActionEvent e) label.setText(textField.getText());