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