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
| package GUI.COMPONENTS;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
/**
*
* @author richard
*/
public class JComplexTextField extends JPanel {
private JLabel Description;
private JTextField Donnee;
private JButton Etendre;
public JComplexTextField() {
this.Description = new JLabel();
this.Donnee = new JTextField();
this.Etendre = new JButton("...");
}
public JComplexTextField(String Description, String Donnee) {
this.Description = new JLabel();
this.Description.setText(Description);
this.Donnee = new JTextField();
this.Donnee.setText(Donnee);
this.Etendre = new JButton("...");
}
public void SetDescription(String Description) {
this.Description.setText(Description);
}
public void SetDonnee(String Donnee) {
this.Donnee.setText(Donnee);
}
public String GetDonnee() {
return this.Donnee.getText();
}
} |
Partager