大行程限位器设于轨道两端,有止动缓冲装置、止动钢轨以及装在起重机行走台车上的终点开关,防止起重机()事故的发生。
参考答案:脱轨
怀疑胰腺癌首选的检查方法是()
A.MRI
B.B超
C.CT
D.X线气钡双重造影
E.血尿淀粉酶测定
本题的功能是通过按钮来选择窗口显示的风格。窗口中有三个按钮:“Metal”、“Motif”和“Windows”,单击任何一个按钮,就能将窗口的风格改变为按钮名称所对应的风格。 import java.awt.*; import java.awt.event.*; import javax.swing.*; class PlafPanel extends JPanei implements ActionListener public______() metalButton=new JButton("Metal"); motifButton=new JButton("Motif"); windowsButton=new JButton("Windows"); add(metalButton); add(motifButton); add(windowsButton); metalButton.addActionListener(this); motifButton.addActionListener(this); windowsButton.addActionListener(this); public void actionPerformed(ActionEvent evt) Object source=evt.getSource(); String plaf=""; if(source==metalButton) plaf="javax.swing.plaf.metal.MetalLookAndFeel"; else if(source==motifButton) plaf="com.sun.java.swing.plaf.motif.MotifLookAndFeel"; else if(source==windowsButton) plaf="com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; try UIManager.setLookAndFeel(______); SwingUtilities.updateComponentTreeUI(this); 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 PlafFrame(); frame.show();