コード例 #1
0
  private void setTextFieldByGridBagConstraints() {
    GridBagConstraints gbc = new GridBagConstraints();

    gbc.weightx = 0;
    gbc.insets = new Insets(0, 0, 0, 5);
    gbc.anchor = GridBagConstraints.LINE_END;
    add(nextRepetitionDateTextField, gbc);
  }
コード例 #2
0
  private void setLabelByGridBagConstraints() {
    GridBagConstraints gbc = new GridBagConstraints();

    gbc.weightx = 1;
    gbc.insets = new Insets(0, 5, 0, 5);
    gbc.anchor = GridBagConstraints.LINE_START;
    add(repetitionNameLabel, gbc);
  }