钠离子交换器再生时,在一定浓度的盐液中,树脂对NA+的吸取会优先于CA2+、MG2+。()
参考答案:错
下 * * 环类抗抑郁药治疗抑郁发作的描述哪些是对的()
A.应从小剂量开始,有效治疗剂量为150~300mg/日
B.一般用药后2~4周起效,急性期治疗6~8周
C.若使用治疗量4~6周仍无明显疗效应考虑换药
D.治疗有效的患者应用治疗量维持治疗6~8个月,以后再逐步减量
E.最常见的副作用为肝脏毒性作用
【说明】 本程序通过移动滑动条修改颜色RGB值,从而控制颜色。程序中有一个面板、3个标签和3个滑动条,标签和滑动条一一对应,分别对应三原色红、绿、蓝,任意拖动其中的一个滑动条,所对应的颜色值就会发生变化,面板的颜色也会发生对应的变化,如下图所示,滑动条值的范围是0~255。
【Java代码】 import java.awt.*; import java.awt.event.*; import javax.swing.*; public class simple extends JFrame implements AdjustmentListenerpublic simple() setTitle("simple"); setSize(300, 200); addWindowListener(new WindowAdapter()public void windowClosing( (1) ) System.exit(0); ); Container contentPane=getContentPane(); JPanel p= (2) ; p.setLayout(new GridLayout(3, 2)); p.add(redLabel=new JLabel("Red 0")); p.add(red=new JScrollBar(Adjustable. HORIZONTAL, 0, 0, 0, 255)); red.setBlocklncrement(16); red.addAdjustmentListener(this); p.add(greenLabel= (3) ("Green 0")); p.add(green=new JScrollBar(Adjustable.HORIZONTAL 0, 0, 0, 255)); green setBIocklncrement(16); green.addAdjustmentListener(this); p.add(blueLabel=new JLabel("Blue 0")); p.add(btue=new JScrollBar(Adjustable. HORIZONTAL, 0, 0, 0, 255)); blue,setBIocklncrement(16); blue.addAdjustmentListener(this); contentPane.add(p, "South"); colorPanet=new JPanel(); colorPanet.setBackground(new Color(0, 0, 0)); contentPane.add( (4) ,"Center");public void adjustmentValueChanged(AdjustmentEvent evt) redLabel.setText("Red"+red.getValue()); greenLabel.setText("Green"+green.getValue()); blueLabel.setText("Blue"+blue.getValue()); coiorPanel.setBackground(new Color(red.getValue(), green.getValue(), blue.getValue())); colorPanel.repaint();public static void main(String[] args) JFrame f= (5) ; f.show();private JLabel redLabel;private JLabel greenLabel;private JLabel blueLabel;private JScrollBar red;private JScroilBar green;private JScrollBar blue;private JPanel colorPanel;