コード例 #1
0
  private JPanel createValidationPanel(Container contentPane) {
    JPanel pnValidationContainer = new JPanel();
    contentPane.add(pnValidationContainer, BorderLayout.SOUTH);
    pnValidationContainer.setLayout(new BorderLayout(0, 0));

    pnValidation = new JPanel();
    pnValidation.setMinimumSize(new Dimension(0, 0));
    pnValidation.setName(NAME_VALIDATION_PANEL);

    validationModel = new DefaultValidationResultModel();
    pnValidation.setLayout(new MigLayout("", "[grow]", "[40px,grow]"));
    validationResultList = ValidationResultViewFactory.createReportList(validationModel);
    pnValidation.add(validationResultList, "cell 0 0,alignx right,growy");
    pnValidationContainer.add(pnValidation, BorderLayout.NORTH);
    return pnValidationContainer;
  }
コード例 #2
0
ファイル: PagoForm.java プロジェクト: ArtChl/siipapwin
 private JComponent createValidationView() {
   return ValidationResultViewFactory.createReportList(model.getValidationModel());
 }