ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package com.vci.client.portal.Formdesign.widget;
 
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.EventListener;
 
import javax.swing.JPanel;
import javax.swing.JTextArea;
 
import com.vci.client.ui.swing.VCISwingUtil;
import com.vci.client.ui.swing.components.VCIJButton;
import com.vci.client.ui.swing.components.VCIJLabel;
 
public class CanzhaoJPanel extends JPanel implements ActionListener, EventListener{
 
    /**
     * 
     */
    private static final long serialVersionUID = 3826672608143240090L;
 
    private JTextArea text = new JTextArea();
    private VCIJButton button = VCISwingUtil.createVCIJButton("ShowCanZhao", "", "", "search.gif", this);
    
    public CanzhaoJPanel(){
        super();
        init();
    }
    
    private void init(){
        setLayout(new GridBagLayout());
        GridBagConstraints c = new GridBagConstraints();
        c.gridx = 0;
        c.gridy = 0;
        c.gridheight = 1;
        c.gridwidth = 1;
        c.weightx = 1;
        c.weighty = 1;
        c.anchor = GridBagConstraints.NORTHWEST;
        c.fill = GridBagConstraints.BOTH;
        text.setPreferredSize(new Dimension(100, 25));
        add(text, c);
 
        c.gridx = 1;
        c.gridheight = 1;
        c.gridwidth = 1;
        c.weightx = 0;
        c.weighty = 0;
        c.anchor = GridBagConstraints.EAST;
        c.fill = GridBagConstraints.NONE;
        add(button, c);
        
        c.gridx = 2;
        c.gridheight = 1;
        c.gridwidth = 1;
        c.weightx = 0;
        c.weighty = 0;
        c.anchor = GridBagConstraints.EAST;
        c.fill = GridBagConstraints.NONE;
        VCIJLabel lbl = new VCIJLabel("  ");// 涓烘樉绀�
        add(lbl, c);
    }
 
    public void actionPerformed(ActionEvent e) {
        // TODO Auto-generated method stub
        
    }
}