Ejemplo n.º 1
0
  /** <code> layoutComponents() </code> defined for layout components in this screen. */
  private void layoutComponents() {
    this.setLayout(new GridBagLayout());
    JPanel panel1 = new JPanel(new GridBagLayout());
    panel1.setBorder(BorderFactory.createTitledBorder(""));
    ComponentFactory.addComponent(
        panel1,
        rdoCopyrightReq,
        new GridBagConstraints(
            0,
            0,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel1,
        rdoDepositReq,
        new GridBagConstraints(
            1,
            0,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel1,
        rdoAnswerReq,
        new GridBagConstraints(
            0,
            1,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel1,
        rdoNoAnswerReq,
        new GridBagConstraints(
            1,
            1,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel1,
        rdoHasNumber,
        new GridBagConstraints(
            0,
            2,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 4, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel1,
        rdoNoNumber,
        new GridBagConstraints(
            1,
            2,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        this,
        panel1,
        new GridBagConstraints(
            0,
            0,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.CENTER,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));

    JPanel panel2 = new JPanel(new GridBagLayout());
    JPanel panel3 = new JPanel(new GridBagLayout());
    JPanel panel4 = new JPanel(new GridBagLayout());
    panel4.setBorder(BorderFactory.createTitledBorder(props.getProperty("search_base.name")));
    ComponentFactory.addComponent(
        panel2,
        chkRequestDate,
        new GridBagConstraints(
            0,
            0,
            1,
            1,
            0.3,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel2,
        chkAnswerDate,
        new GridBagConstraints(
            1,
            0,
            1,
            1,
            0.3,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel2,
        chkSetNumberDate,
        new GridBagConstraints(
            2,
            0,
            1,
            1,
            0.3,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel3,
        panel2,
        new GridBagConstraints(
            0,
            0,
            2,
            1,
            1.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel3,
        lblFromDate,
        new GridBagConstraints(
            0,
            1,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.NONE,
            new Insets(4, 8, 0, 8),
            0,
            0));
    txfFromDate.setPreferredSize(new Dimension(140, 20));
    txfToDate.setPreferredSize(new Dimension(140, 20));
    ComponentFactory.addComponent(
        panel3,
        txfFromDate,
        new GridBagConstraints(
            1,
            1,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.NONE,
            new Insets(4, 2, 0, 10),
            0,
            0));
    ComponentFactory.addComponent(
        panel3,
        lblToDate,
        new GridBagConstraints(
            0,
            2,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.NONE,
            new Insets(4, 8, 0, 8),
            0,
            0));
    ComponentFactory.addComponent(
        panel3,
        txfToDate,
        new GridBagConstraints(
            1,
            2,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.NONE,
            new Insets(4, 2, 0, 10),
            0,
            0));
    ComponentFactory.addComponent(
        panel4,
        panel3,
        new GridBagConstraints(
            0,
            0,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));

    JPanel panel5 = new JPanel(new GridBagLayout());
    ComponentFactory.addComponent(
        panel5,
        lbldocType,
        new GridBagConstraints(
            0,
            0,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_END,
            GridBagConstraints.NONE,
            new Insets(10, 2, 8, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel5,
        cmbDocType,
        new GridBagConstraints(
            1,
            0,
            2,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel5,
        lblTitle,
        new GridBagConstraints(
            0,
            1,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_END,
            GridBagConstraints.NONE,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel5,
        txfTitle,
        new GridBagConstraints(
            1,
            1,
            2,
            1,
            0.3,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel5,
        lblNumber,
        new GridBagConstraints(
            0,
            2,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.NONE,
            new Insets(4, 8, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel5,
        txfNumber,
        new GridBagConstraints(
            1,
            2,
            1,
            1,
            0.5,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel5,
        lblNumberSufix,
        new GridBagConstraints(
            2,
            2,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_END,
            GridBagConstraints.NONE,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel4,
        panel5,
        new GridBagConstraints(
            1,
            0,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));

    JPanel panel8 = new JPanel(new GridBagLayout());
    ComponentFactory.addComponent(
        panel8,
        lblUserName,
        new GridBagConstraints(
            0,
            0,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_END,
            GridBagConstraints.NONE,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel8,
        txfUserName,
        new GridBagConstraints(
            1,
            0,
            2,
            1,
            2.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel8,
        btnSelectUser,
        new GridBagConstraints(
            3,
            0,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.NONE,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        panel4,
        panel8,
        new GridBagConstraints(
            0,
            1,
            2,
            1,
            2.0,
            0.0,
            GridBagConstraints.LINE_START,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));
    ComponentFactory.addComponent(
        this,
        panel4,
        new GridBagConstraints(
            0,
            1,
            1,
            1,
            1.0,
            0.0,
            GridBagConstraints.CENTER,
            GridBagConstraints.HORIZONTAL,
            new Insets(4, 2, 0, 2),
            0,
            0));

    ComponentFactory.addComponent(
        this,
        grid,
        new GridBagConstraints(
            0,
            4,
            1,
            1,
            1.0,
            1.0,
            GridBagConstraints.CENTER,
            GridBagConstraints.BOTH,
            new Insets(4, 2, 0, 2),
            0,
            0));
  }