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
| private ContactClientPanel getDetailsContactPanel() {
if (detailsContactPanel == null) {
mailLabel = new JLabel();
mailLabel.setLocation(new Point(10, 118));
mailLabel.setPreferredSize(new Dimension(85, 20));
mailLabel.setText("Adresse email");
mailLabel.setSize(new Dimension(131, 20));
telecopieLabel = new JLabel();
telecopieLabel.setLocation(new Point(10, 94));
telecopieLabel.setPreferredSize(new Dimension(85, 20));
telecopieLabel.setText("Fax");
telecopieLabel.setSize(new Dimension(66, 20));
TelephoneLabel = new JLabel();
TelephoneLabel.setLocation(new Point(10, 70));
TelephoneLabel.setPreferredSize(new Dimension(85, 20));
TelephoneLabel.setText("Téléphone");
TelephoneLabel.setSize(new Dimension(66, 20));
prenomLabel = new JLabel();
prenomLabel.setLocation(new Point(10, 46));
prenomLabel.setPreferredSize(new Dimension(85, 20));
prenomLabel.setText("Prénom");
prenomLabel.setSize(new Dimension(65, 20));
nomLabel = new JLabel();
nomLabel.setLocation(new Point(10, 22));
nomLabel.setPreferredSize(new Dimension(85, 20));
nomLabel.setText("Nom");
nomLabel.setSize(new Dimension(65, 20));
detailsContactPanel = new ContactClientPanel();
detailsContactPanel.setLayout(null);
detailsContactPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), "Contact", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Tahoma", Font.PLAIN, 12), new Color(51, 51, 51)));
detailsContactPanel.setSize(new Dimension(246, 301));
detailsContactPanel.setLocation(new Point(143, 5));
detailsContactPanel.add(nomLabel, null);
detailsContactPanel.add(prenomLabel, null);
detailsContactPanel.add(TelephoneLabel, null);
detailsContactPanel.add(telecopieLabel, null);
detailsContactPanel.add(mailLabel, null);
detailsContactPanel.add(getCommentairesPanel1(), null);
detailsContactPanel.add(getEmailTextField(), null);
detailsContactPanel.add(getFaxTextField(), null);
detailsContactPanel.add(getTelTextField(), null);
detailsContactPanel.add(getPrenomTextField(), null);
detailsContactPanel.add(getNomTextField(), null);
}
return detailsContactPanel;
} |
Partager