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
|
private JPanel getPnlAcceuil() {
if (pnlAcceuil == null) {
pnlAcceuil = new JPanel();
pnlAcceuil.setLayout(null);
pnlAcceuil.setBackground(Color.lightGray);
pnlAcceuil.add(getPnlConfig(), null);
pnlAcceuil.add(new CreateButton(), null);
pnlAcceuil.add(getBtnNewProfil(), null);
}
return pnlAcceuil;
}
public class CreateButton extends JPanel {
JPanel zoneBouton;
public CreateButton() {
zoneBouton = new JPanel();
zoneBouton.setFont(new Font("Dialog", Font.PLAIN, 12));
zoneBouton.setLayout(new FlowLayout());
zoneBouton.setBounds(new Rectangle(6, 122, 538, 166));
zoneBouton.setBorder(BorderFactory.createTitledBorder(BorderFactory
.createLineBorder(Color.MAGENTA), "Profils Disponibles"));
lbl = new JLabel();
lbl.setBounds(new Rectangle(180, 25, 172, 16));
lbl.setText("OS non trouvé"); |