问题 口语交际,情景问答题

请将下面语段改写为三个短句,要求:前后连贯,不得改变原意。(6分)

剑桥郡警署女发言人雪莉?斯普拉特声明在温 * * * * 09年2月2日于英国剑桥大学进行以《用发展眼光看中国》为题的演讲时那名会场后排就坐的突然高声干扰现场秩序的27岁外籍男子已因涉嫌扰乱公众秩序而被逮捕。

答案

1 温 * * * * 09年2月2日在英国剑桥大学进行了以《用发展眼光看中国》为题的演讲。

2 当天在会场后排就坐的2 7岁外籍男子突然高声干扰现场秩序。

3 剑桥郡警署女发言人雪莉?斯普拉特声明该男子已因涉嫌扰乱公众秩序而被逮捕。

  

填空题

本题的功能是通过按钮来选择窗口显示的风格。窗口中有三个按钮:“Metal”、“Motif和“WindoWS“,单击任何一个按钮,就能将窗口的风格改变为按钮名称所对应的风格。
import java.awt*;
import java.awt.event.*;
import javax.swing.*;
class PlafPanel extends JPanel implements Actionlis-tener
public______()
metalButton=new JButton("Metal");
motifButton=new JButton("Motif");
windowsButton=new JButton("Windows");
add(metalButton);
add(motifButton);
add(windowsButton);
metalButlon.addActionListener(this);
motifButton.addActionListener(this);
windowsButton.addActionListener(this);

public void actionPerformed(ActionEvent evt)
Object source=evt.getSource();
string plaf="";
if(source==metaIButton)
pIaF="javax.swing.plaf.metal.MetalLookAncl-Feel";
else if(source==motifButton)
plaf="com.sun.java.swing.plaf.motif.Moti-fLookAndFeel";
else if(source==windowsButton)
plaf="com.sun.java.swing.plaf.windows.windowsLookAndFeel";
try
UIManager.setLookAndFeel(______);
SwingUtilities.updateComponentTreeUI(ttlis);

catch(Exception e)

private JButton metalButton;
private JButton motifButton;
private JButton windowsButton;

class PlafFrame extends JFrame
public PlafFrame()
setTitle("simple");
setSize(300,200);
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);

);
Container contentPane=getContentPane();
contentPane.add(new PlafPanel());


public class java2
public static Void main(String[]args)
JFrame frame=new PIafFrame();
frame.show();

单项选择题