package com.vci.client.portal.Formdesign.widget;
|
|
import java.awt.BorderLayout;
|
import java.awt.Dimension;
|
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionListener;
|
import java.io.File;
|
import java.util.EventListener;
|
|
import javax.swing.JFileChooser;
|
import javax.swing.JPanel;
|
import javax.swing.JTextArea;
|
import javax.swing.JTextField;
|
|
import com.vci.client.ui.swing.VCISwingUtil;
|
import com.vci.client.ui.swing.components.VCIJButton;
|
import com.vci.client.ui.swing.components.VCIJFileChooser;
|
|
public class TextButtonJPanel extends JPanel implements ActionListener, EventListener{
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 3826672608143240090L;
|
|
private JTextField text = new JTextField();
|
private VCIJButton button = VCISwingUtil.createVCIJButton("button", "", "", "cursor.png", this);
|
|
public String getText() {
|
return text.getText().toString().trim();
|
}
|
|
public void setText(String string) {
|
text.setText(string);
|
}
|
|
public TextButtonJPanel(){
|
super();
|
init();
|
}
|
|
private void init(){
|
text.setPreferredSize(new Dimension(130, 25));
|
setLayout(new BorderLayout());
|
add(text,BorderLayout.CENTER);
|
add(button,BorderLayout.EAST);
|
text.setEditable(false);
|
}
|
|
public void actionPerformed(ActionEvent e) {
|
}
|
}
|