判断题 个人理财从业人员对客户投资情况评估和分析时,应包含相应的风险揭示内容。()
判断题 幼儿口吃的心理原因不包括说话时过于急躁、激动。()
判断题 商业银行外包管理的组织架构包括董事会、高级管理层及风险管理委员会。()
判断题 成长期销售量的增长出现下降趋势;成本费用较少,银行利润较稳定。( )
问答题 本题的功能是跟踪鼠标在窗口的操作,以及在窗口的坐标,包括移进、移出、移动、单击、释放和拖曳,并将这些信息显示在窗口的文字标签上。 import java.awt.*; import java.awt.event.*; import javax.swing.*; public class java3 extends JFrame implements MouseL- istener MouseMotionListener { private JLabel statusBar; public java3() { super("java3"); statllsBar=new TLabel(); getContentPane.add(statusBar,BorderLayout. SOUTH); addMouseListener(this); addMouseMotionListener(this); setSize(275,100); show(); } public void mouseClicked(MouseEvent e) { statusBar.setText("Clicked at["+e.getX()+ ","+e.getY()+"]"); } public void mousePressed(MouseEvent e) { statusBar.setText("Pressed at["+e.getX()+ ","+e.getY()+"]"); } public void mouseReleased(MouseEvent e) { statusBar.setText("Released at["+e.getX() +","+e.getY()+"]"); } public void mouseln(MouseEvent e) { statusBar.setText("Mouse in window"); public void mouseExited(MouseEvent e) { statusBar.setText("Mouse outside window"); } public void mouseDragged(MouseEvent e) { statusBar.setText("Dragged at["+e.getX() +","+e.getY()+"]"); } public void mouseMoved(MouseEvent e) { statusBar.setText("Moved at["+e.getX()+ ","+e.getY()+"]"); } public static void main(String args[]) { java3 app=new java3(); app.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } };
问答题 本题读取用户输入的字符流,直到用户输入字符串quit后结束。 importjava.io.*; public class javal{ public static void main(String[]args){ ; BufferedReader in; ir=new InputStreamReader(System.in); in=new BufferedReader(ir); System.OUt.println("please input:"); while( ){ try{ String s=in.readLine(); System.out.println("echo:"+s); if(S.equals("quit")) ; )catch(Exception e){ } } } }
判断题 按委托协议的约定,公积金管理中心应定期(每月和每年)按比例将委托贷款手续费划归给承办银行 。( )
问答题 本题是一个Applet,它显示了一个树型结构。单击树结点的时候,就能将其子结点展开,同时下面的文本框可以显示出所单击的结点的路径,比如单击了根结点下B结点下B2结点,则文本框显示为"[TOP,B,B2]"。 import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.tree.*; public class java2 extends JApplet { JTree tree; JTextField jtf; public void init() { Container cp=getContentPane(); cp.setLayout(new BorderLayout()); top=new DefaultMutableTreeNode(" TOP"): DefaultMutableTreeNode a=new Default- MutableTreeNode("A"); DefaultMutableTreeNode al = new Default- MutableTreeNode("Al"); a.add(a1); DefatIltMutableTreeNode a2=new Default- MutableTreeNode("A2"); a.add(a2); DefaultMutableTreeNode a3=new Default- MutableTreeNode("A3"); a.add(a3); DefaultMutableTreeNode b=new Default- MutableTreeNode("B"); DefaultMutableTreeNode bl=new Default- MutableTreeNode("Bl"); b.add(b1); DefaultMutableTreeNode b2=new Default- MutableTreeNode("B2"); b.add(b2); DefaultMutableTreeNode b3=new Default- MutableTreeNode("B3"): b.add(b3); top.add(a); top.add(b); tree=new JTree(top); int v=ScrollPaneConstants.VERTICAL_ SCROLLBAR_AS_NEEDED; int h=ScrollPaneConstants.HORIZONTAL_ SCRoLLBAR_AS_NEEDED; JScrollPane jsp=new JScrollPane(tree,V,h); cp.add(jsp,BorderLayout.CENTER); jtf=new JTextField(20); cp.add(jtf,BorderLayout.SOUTH); tree.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent me) { doMouseClicked(me); } }); } void doMouseClicked(MouseEvent me) { tp=tree.getPathForLocation(me.getX (),me.getY()); if(tp!=null) jtf.setText(tp.toString()); else jtf.setText(""); } }
问答题 本题中使用了选项卡,窗口中有一个选项卡,总共有“系统”、“声卡”、“显卡”、“网卡”和“帮助”5项选项面。单击各个选项的文字标签后,所选中的选项将为当前选项。“系统”选项上有3个复选按钮,分别控制“声卡”、“显卡”和“网卡”三个选项,选中某个按钮后,它所指示的选项就可用,否则不可用。 import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class java3 extends JFrame{ JTabbedPane config=new JTabbedPane(): public java3(){ super("java3"); setSize(500,300); setDefaultCloseoperation(EXIT_ON_CLOSE); JPanel configPane=new JPanel(); configPane.setLayout(new BoxLayout(config- Pane,BoxLayout.Y_AXIS)); JTextArea question=new JTextArea("下面的哪 个选项\n"+"你想设置?"); question.setEditable(false); question.setMaximumSize(new Dimension(300, 50)); question.setAlignmentX(0.Of); question.setBackground(configPane.getBack- ground()); JCheckBox audioCB=new JCheckBox ("声卡", true); JCheckBox nicCB=new JCheckBox("网卡", true); JCheckBox tvCB=new JCheckBox("显示卡", false); configPane.add(Box.createVerticalGlue()); configPane.add(question); configPane.add(audioCB); configPane.add(nicCB); configPane.add(tvCB); configPane.add(Box.ereateVerticalGlue()); JLabel audioPane=new JLabel("声卡页面"); JLabel niePane=new JLabel("网卡页面"); JLabel tvPane=new JLabel("显示卡页面"); JLabel helpPane=new JLabel("帮助信息"); audioCB.addItemListener(new TabManager(au- dioPane)); nicCB.addItemListener(new TabManager (nicPane)); tvCB.addItemListener(new TabManager (tvPane)): config.addTab("系统",null,configPane," Choose Installed Options”); config.addTab("声卡",null,audioPane,"Audio system configuration”); config.addTab("网卡",null,nicPane;"Netwot- king configuration"); config.addTab("显示卡",null,tvPane,"Video system configuration"); config.addTab("帮助",null,helpPane,"How Do I…"); getContentPane().add(config,BorderLayout. CENTER); } class TabManger implements ActionListener{ Component tab; public TabManager(Component tabToManage){ tab=tabToManage; } public void ItemStateChanged(ItemEvent ie){ int index=config.indexOfComponent(tab); if(index!=-l){ config.setEnabledAt(index,ie.getStateChange() = =ItemEvent.SELECTED); } this.repaint(); } } public static void main(String args[]){ java3 SC=new java3(); se.setVisible(true); } }
判断题 案件风险应作为一项重要的内容纳入各营业机构每年的风险评估。