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 } }