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
|
public class LigneParametre2 extends javax.swing.JPanel {
private JSeparator jSeparator1;
private JLabel lblSrc;
private JComboBox cbbItems;
private JButton btnDel;
private JLabel lblUnits;
private JPanel pnlContent;
private JTextField fldHeure;
private JTextField fldDate;
public LigneParametre2() {
super();
initGUI();
}
private void initGUI() {
try {
GridBagLayout thisLayout = new GridBagLayout();
thisLayout.rowWeights = new double[] {0.0, 0.1};
thisLayout.rowHeights = new int[] {27, 7};
thisLayout.columnWeights = new double[] {0.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0};
thisLayout.columnWidths = new int[] {35, 64, 41, 20, 135, 82, 36};
this.setLayout(thisLayout);
this.setPreferredSize(new java.awt.Dimension(515, 31));
this.add(getJSeparator1(), new GridBagConstraints(0, 1, 7, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
this.add(getLblSrc(), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets(7, 1, 1, 1), 0, 0) );
this.add(getFldDate(), new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(4, 1, 1, 1), 0, 0));
this.add(getFldHeure(), new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(4, 1, 1, 1), 0, 0));
this.add(getCbbItems(), new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(4, 1, 1, 1), 0, 0));
this.add(getPnlContent(), new GridBagConstraints(4, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(2, 1, 1, 1), 0, 0));
this.add(getLblUnits(), new GridBagConstraints(5, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(8, 2, 1, 2), 0, 0));
this.add(getBtnDel(), new GridBagConstraints(6, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets(4, 1, 1, 1), 0, 0));
} catch (Exception e) {
e.printStackTrace();
}
}
} |
Partager