public void actionPerformed(ActionEvent e) { if (e.getSource() == xjdd) { jp3.setVisible(false); jp3 = new JPanel(); jp3.setLayout(null); jp3.setOpaque(false); jp2.add(jp3); jp3.setBounds(-1, 40, screenWidth * 2 / 3 - 200, screenHeight * 3 / 4 - 40); DealUI_BuildAnOrder s = new DealUI_BuildAnOrder(vo); JScrollPane js = new JScrollPane(s); jp3.add(js); js.setBounds(0, 0, screenWidth * 2 / 3 - 200, screenHeight * 3 / 4 - 40); s.setPreferredSize(new Dimension(screenWidth * 2 / 3 - 220, 1120)); js.setOpaque(false); js.getViewport().setOpaque(false); js.getVerticalScrollBar().setUnitIncrement(20); xjdd.setBounds(0, 0, 200, 60); xjdd.setFont(new Font("宋体", 1, 20)); xjdd.setForeground(Color.gray); srsjxx.setBounds(0, 60, 200, 40); srsjxx.setFont(new Font("宋体", 1, 15)); srsjxx.setForeground(Color.black); cxdd.setBounds(0, 100, 200, 40); cxdd.setFont(new Font("宋体", 1, 15)); cxdd.setForeground(Color.black); } if (e.getSource() == srsjxx) { jp3.setVisible(false); jp3 = new DealUI_Receival(vo); jp2.add(jp3); jp3.setBounds(0, 40, screenWidth * 2 / 3 - 200, screenHeight * 3 / 4 - 40); xjdd.setBounds(0, 0, 200, 40); xjdd.setFont(new Font("宋体", 1, 15)); xjdd.setForeground(Color.black); srsjxx.setBounds(0, 40, 200, 60); srsjxx.setFont(new Font("宋体", 1, 20)); srsjxx.setForeground(Color.gray); cxdd.setBounds(0, 100, 200, 40); cxdd.setFont(new Font("宋体", 1, 15)); cxdd.setForeground(Color.black); } if (e.getSource() == cxdd) { jp3.setVisible(false); jp3 = new JPanel(); jp3.setLayout(null); jp3.setOpaque(false); jp2.add(jp3); jp3.setBounds(-1, 40, screenWidth * 2 / 3 - 200, screenHeight * 3 / 4 - 40); DealUI_CheckAnOrder s = new DealUI_CheckAnOrder(vo); JScrollPane js = new JScrollPane(s); jp3.add(js); js.setBounds(0, 0, screenWidth * 2 / 3 - 200, screenHeight * 3 / 4 - 40); s.setPreferredSize(new Dimension(screenWidth * 2 / 3 - 220, 1150)); js.setOpaque(false); js.getViewport().setOpaque(false); js.getVerticalScrollBar().setUnitIncrement(20); xjdd.setBounds(0, 0, 200, 40); xjdd.setFont(new Font("宋体", 1, 15)); xjdd.setForeground(Color.black); srsjxx.setBounds(0, 40, 200, 40); srsjxx.setFont(new Font("宋体", 1, 15)); srsjxx.setForeground(Color.black); cxdd.setBounds(0, 80, 200, 60); cxdd.setFont(new Font("宋体", 1, 20)); cxdd.setForeground(Color.gray); } }