Package javax.swing

Examples of javax.swing.GroupLayout$AutoPreferredGapMatch


    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    setContentPane(contentPane);

    tabbedPane = new JTabbedPane(JTabbedPane.TOP);
    GroupLayout gl_contentPane = new GroupLayout(contentPane);
    gl_contentPane.setHorizontalGroup(gl_contentPane.createParallelGroup(
        Alignment.LEADING).addGroup(
        gl_contentPane
            .createSequentialGroup()
            .addContainerGap()
            .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE,
                820, Short.MAX_VALUE).addContainerGap()));
    gl_contentPane.setVerticalGroup(gl_contentPane.createParallelGroup(
        Alignment.LEADING).addGroup(
        gl_contentPane
            .createSequentialGroup()
            .addContainerGap()
            .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE,
                498, Short.MAX_VALUE).addContainerGap()));

    tabPanJugadores = new JPanel();

    tabbedPane.addTab("Jugadores", null, tabPanJugadores, null);

    JLabel lblJugador = new JLabel("Jugador");

    txtJugador = new JTextField();
    txtJugador.setColumns(10);

    JScrollPane scrollPane = new JScrollPane();

    btnAgregar = new JButton("Agregar");

    btnPrimeraRonda = new JButton("1� Ronda");

    btnExportar = new JButton("Exportar");

    GroupLayout gl_tabPanJugadores = new GroupLayout(tabPanJugadores);
    gl_tabPanJugadores
        .setHorizontalGroup(gl_tabPanJugadores
            .createParallelGroup(Alignment.LEADING)
            .addGroup(
                gl_tabPanJugadores
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        gl_tabPanJugadores
                            .createParallelGroup(
                                Alignment.LEADING)
                            .addComponent(
                                scrollPane,
                                GroupLayout.DEFAULT_SIZE,
                                805,
                                Short.MAX_VALUE)
                            .addGroup(
                                gl_tabPanJugadores
                                    .createSequentialGroup()
                                    .addComponent(
                                        lblJugador)
                                    .addPreferredGap(
                                        ComponentPlacement.UNRELATED)
                                    .addComponent(
                                        txtJugador,
                                        GroupLayout.PREFERRED_SIZE,
                                        239,
                                        GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        ComponentPlacement.RELATED)
                                    .addComponent(
                                        btnAgregar)
                                    .addGap(18)
                                    .addComponent(
                                        btnPrimeraRonda)
                                    .addPreferredGap(
                                        ComponentPlacement.UNRELATED)
                                    .addComponent(
                                        btnExportar)))
                    .addContainerGap()));
    gl_tabPanJugadores
        .setVerticalGroup(gl_tabPanJugadores
            .createParallelGroup(Alignment.LEADING)
            .addGroup(
                gl_tabPanJugadores
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        gl_tabPanJugadores
                            .createParallelGroup(
                                Alignment.BASELINE)
                            .addComponent(
                                lblJugador)
                            .addComponent(
                                txtJugador,
                                GroupLayout.PREFERRED_SIZE,
                                GroupLayout.DEFAULT_SIZE,
                                GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                btnAgregar)
                            .addComponent(
                                btnPrimeraRonda)
                            .addComponent(
                                btnExportar))
                    .addGap(20)
                    .addComponent(scrollPane,
                        GroupLayout.DEFAULT_SIZE, 405,
                        Short.MAX_VALUE)
                    .addContainerGap()));

    tbl_jugadores = new JTable();
    scrollPane.setViewportView(tbl_jugadores);
    tabPanJugadores.setLayout(gl_tabPanJugadores);

    tabPanMesas = new JPanel();
    tabbedPane.addTab("Mesas", null, tabPanMesas, null);

    scrollPane_1 = new JScrollPane();

    tbl_mesas = new JTable();
    scrollPane_1.setViewportView(tbl_mesas);

    btnNuevaRonda = new JButton("Nueva Ronda");

    btnImprimir = new JButton("Imprimir");

    GroupLayout gl_tabPanMesas = new GroupLayout(tabPanMesas);
    gl_tabPanMesas.setHorizontalGroup(gl_tabPanMesas
        .createParallelGroup(Alignment.TRAILING)
        .addGroup(
            gl_tabPanMesas
                .createSequentialGroup()
                .addContainerGap()
                .addComponent(scrollPane_1,
                    GroupLayout.PREFERRED_SIZE, 805,
                    GroupLayout.PREFERRED_SIZE)
                .addContainerGap(GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE))
        .addGroup(
            gl_tabPanMesas.createSequentialGroup()
                .addContainerGap(623, Short.MAX_VALUE)
                .addComponent(btnNuevaRonda)
                .addPreferredGap(ComponentPlacement.RELATED)
                .addComponent(btnImprimir).addContainerGap()));
    gl_tabPanMesas.setVerticalGroup(gl_tabPanMesas.createParallelGroup(
        Alignment.TRAILING)
        .addGroup(
            gl_tabPanMesas
                .createSequentialGroup()
                .addContainerGap(GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
                .addGroup(
                    gl_tabPanMesas
                        .createParallelGroup(
                            Alignment.BASELINE)
                        .addComponent(btnNuevaRonda)
                        .addComponent(btnImprimir))
                .addPreferredGap(ComponentPlacement.UNRELATED)
View Full Code Here


    setContentPane(contentPane);

    JPanel panel = new JPanel();

    JScrollPane scrollPane = new JScrollPane();
    GroupLayout gl_contentPane = new GroupLayout(contentPane);
    gl_contentPane
        .setHorizontalGroup(gl_contentPane
            .createParallelGroup(Alignment.LEADING)
            .addGroup(
                gl_contentPane
                    .createSequentialGroup()
                    .addGroup(
                        gl_contentPane
                            .createParallelGroup(
                                Alignment.LEADING)
                            .addGroup(
                                gl_contentPane
                                    .createSequentialGroup()
                                    .addGap(10)
                                    .addComponent(
                                        scrollPane,
                                        GroupLayout.DEFAULT_SIZE,
                                        764,
                                        Short.MAX_VALUE))
                            .addGroup(
                                gl_contentPane
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .addComponent(
                                        panel,
                                        GroupLayout.DEFAULT_SIZE,
                                        764,
                                        Short.MAX_VALUE)))
                    .addContainerGap()));
    gl_contentPane.setVerticalGroup(gl_contentPane.createParallelGroup(
        Alignment.LEADING).addGroup(
        gl_contentPane
            .createSequentialGroup()
            .addComponent(panel, GroupLayout.PREFERRED_SIZE, 69,
                GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(ComponentPlacement.UNRELATED)
            .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE,
                450, Short.MAX_VALUE).addContainerGap()));

    table = new JTable();
    scrollPane.setViewportView(table);

    JLabel lblJugador = new JLabel("Jugador");

    txfJugador = new JTextField();
    txfJugador.setColumns(10);

    btnNuevo = new JButton("Agregar");

    GroupLayout gl_panel = new GroupLayout(panel);
    gl_panel.setHorizontalGroup(gl_panel.createParallelGroup(
        Alignment.LEADING).addGroup(
        gl_panel.createSequentialGroup()
            .addContainerGap()
            .addComponent(lblJugador)
            .addPreferredGap(ComponentPlacement.UNRELATED)
            .addComponent(txfJugador, GroupLayout.PREFERRED_SIZE,
                360, GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(ComponentPlacement.UNRELATED)
            .addComponent(btnNuevo)
            .addContainerGap(264, Short.MAX_VALUE)));
    gl_panel.setVerticalGroup(gl_panel
        .createParallelGroup(Alignment.LEADING)
        .addGroup(
            gl_panel.createSequentialGroup()
                .addGap(24)
                .addGroup(
                    gl_panel.createParallelGroup(
                        Alignment.BASELINE)
                        .addComponent(lblJugador)
                        .addComponent(
                            txfJugador,
                            GroupLayout.PREFERRED_SIZE,
View Full Code Here

                keyStoreListMouseClicked(evt);
            }
        });
        keyStoreScrollPane.setViewportView(keyStoreList);

        GroupLayout keyStorePanelLayout = new GroupLayout(keyStorePanel);
        keyStorePanel.setLayout(keyStorePanelLayout);
        keyStorePanelLayout.setHorizontalGroup(
            keyStorePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(GroupLayout.Alignment.TRAILING, keyStorePanelLayout.createSequentialGroup()
                .addGroup(keyStorePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(deleteButton)
                    .addComponent(keyStoreScrollPane, GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(keyStorePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(keyStorePanelLayout.createSequentialGroup()
                        .addComponent(setActiveButton)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 100, Short.MAX_VALUE)
                        .addComponent(showAliasButton))
                    .addComponent(aliasScrollPane, GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)))
        );
        keyStorePanelLayout.setVerticalGroup(
            keyStorePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(GroupLayout.Alignment.TRAILING, keyStorePanelLayout.createSequentialGroup()
                .addGroup(keyStorePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(aliasScrollPane, 0, 0, Short.MAX_VALUE)
                    .addComponent(keyStoreScrollPane, GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(keyStorePanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(deleteButton)
                    .addComponent(setActiveButton, GroupLayout.PREFERRED_SIZE, 18, GroupLayout.PREFERRED_SIZE)
                    .addComponent(showAliasButton)))
        );

        keyStorePanelLayout.linkSize(SwingConstants.VERTICAL, new Component[] {deleteButton, setActiveButton, showAliasButton});

        certificatejTabbedPane.addTab("KeyStore", keyStorePanel);

        fileLabel.setText("File");

        browseButton.setText("Browse");
        browseButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                browseButtonActionPerformed(evt);
            }
        });

        passwordPkcs12Label.setText("Password");

        addPkcs12Button.setText("Add to keystore");
        addPkcs12Button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                addPkcs12ButtonActionPerformed(evt);
            }
        });

        GroupLayout pkcs12PanelLayout = new GroupLayout(pkcs12Panel);
        pkcs12Panel.setLayout(pkcs12PanelLayout);
        pkcs12PanelLayout.setHorizontalGroup(
            pkcs12PanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(pkcs12PanelLayout.createSequentialGroup()
                .addGroup(pkcs12PanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(GroupLayout.Alignment.TRAILING, pkcs12PanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(fileTextField, GroupLayout.DEFAULT_SIZE, 296, Short.MAX_VALUE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(browseButton))
                    .addGroup(pkcs12PanelLayout.createSequentialGroup()
                        .addGap(12, 12, 12)
                        .addComponent(fileLabel))
                    .addGroup(pkcs12PanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(passwordPkcs12Label))
                    .addGroup(GroupLayout.Alignment.TRAILING, pkcs12PanelLayout.createSequentialGroup()
                        .addContainerGap(270, Short.MAX_VALUE)
                        .addComponent(addPkcs12Button))
                    .addGroup(pkcs12PanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(pkcs12PasswordField, GroupLayout.DEFAULT_SIZE, 369, Short.MAX_VALUE)))
                .addContainerGap())
        );
        pkcs12PanelLayout.setVerticalGroup(
            pkcs12PanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(GroupLayout.Alignment.TRAILING, pkcs12PanelLayout.createSequentialGroup()
                .addComponent(fileLabel)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pkcs12PanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(browseButton)
                    .addComponent(fileTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(passwordPkcs12Label)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pkcs12PasswordField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(addPkcs12Button)
                .addGap(70, 70, 70))
        );

        pkcs12PanelLayout.linkSize(SwingConstants.VERTICAL, new Component[] {addPkcs12Button, browseButton, fileTextField, pkcs12PasswordField});

        certificatejTabbedPane.addTab("PKCS#12", pkcs12Panel);

        driverLabel.setText("Driver");

        driverButton.setText("...");
        driverButton.setMargin(new Insets(2, 5, 2, 5));
        driverButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                driverButtonActionPerformed(evt);
            }
        });

        passwordPkcs11Label.setText("PIN Code");

        addPkcs11Button.setText("Add to keystore");
        addPkcs11Button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                addPkcs11ButtonActionPerformed(evt);
            }
        });

        GroupLayout pkcs11PanelLayout = new GroupLayout(pkcs11Panel);
        pkcs11Panel.setLayout(pkcs11PanelLayout);
        pkcs11PanelLayout.setHorizontalGroup(
            pkcs11PanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(pkcs11PanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pkcs11PanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(pkcs11PasswordField, GroupLayout.DEFAULT_SIZE, 369, Short.MAX_VALUE)
                    .addComponent(driverLabel)
                    .addComponent(passwordPkcs11Label)
                    .addGroup(pkcs11PanelLayout.createSequentialGroup()
                        .addComponent(driverComboBox, 0, 336, Short.MAX_VALUE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(driverButton))
                    .addComponent(addPkcs11Button, GroupLayout.Alignment.TRAILING))
                .addContainerGap())
        );
        pkcs11PanelLayout.setVerticalGroup(
            pkcs11PanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(pkcs11PanelLayout.createSequentialGroup()
                .addComponent(driverLabel)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pkcs11PanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(driverButton)
                    .addComponent(driverComboBox, GroupLayout.PREFERRED_SIZE, 17, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(passwordPkcs11Label)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pkcs11PasswordField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(addPkcs11Button)
                .addGap(58, 58, 58))
        );

        pkcs11PanelLayout.linkSize(SwingConstants.VERTICAL, new Component[] {addPkcs11Button, driverButton, driverComboBox, pkcs11PasswordField});

        certificatejTabbedPane.addTab("PKCS#11", pkcs11Panel);

        GroupLayout cryptoApiPanelLayout = new GroupLayout(cryptoApiPanel);
        cryptoApiPanel.setLayout(cryptoApiPanelLayout);
        cryptoApiPanelLayout.setHorizontalGroup(
            cryptoApiPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 389, Short.MAX_VALUE)
        );
        cryptoApiPanelLayout.setVerticalGroup(
            cryptoApiPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 124, Short.MAX_VALUE)
        );

        certificatejTabbedPane.addTab("CrytoAPI", cryptoApiPanel);

        useClientCertificateCheckBox.setText("Use client certificate");
        useClientCertificateCheckBox.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
        useClientCertificateCheckBox.setMargin(new Insets(0, 0, 0, 0));
        useClientCertificateCheckBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                useClientCertificateCheckBoxActionPerformed(evt);
            }
        });

        textLabel.setText("<html><body><p> Add your keystore and select the desired certificate.</p>"
          + "<p>Certificate setting will not be stored in options and you will need to enable "
          + "certificate next time you restart Paros.</p></body></html>");

        certificateLabel.setText("Active certificate");

        certificateTextField.setEnabled(false);

        showActiveCertificateButton.setText("->");
        showActiveCertificateButton.setActionCommand(">");
        showActiveCertificateButton.setEnabled(false);
        showActiveCertificateButton.setMargin(new Insets(2, 2, 2, 2));
        showActiveCertificateButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                showActiveCertificateButtonActionPerformed(evt);
            }
        });

        GroupLayout certificatePanelLayout = new GroupLayout(certificatePanel);
        certificatePanel.setLayout(certificatePanelLayout);
        certificatePanelLayout.setHorizontalGroup(
            certificatePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(certificatePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(certificatePanelLayout.createSequentialGroup()
                    .addComponent(textLabel, 0, 0, Short.MAX_VALUE)
                    .addContainerGap())
                .addGroup(certificatePanelLayout.createSequentialGroup()
                    .addGap(2, 2, 2)
                    .addGroup(certificatePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
                        .addComponent(certificatejTabbedPane, GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE)
                        .addGroup(certificatePanelLayout.createSequentialGroup()
                            .addGroup(certificatePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
                                .addComponent(useClientCertificateCheckBox)
                                .addComponent(certificateLabel)
                                .addGroup(GroupLayout.Alignment.TRAILING, certificatePanelLayout.createSequentialGroup()
                                    .addComponent(certificateTextField, GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE)
                                    .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(showActiveCertificateButton)
                                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)))
                            .addContainerGap()))))
        );
        certificatePanelLayout.setVerticalGroup(
            certificatePanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(certificatePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(textLabel)
                .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(useClientCertificateCheckBox)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(certificatejTabbedPane, GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(certificateLabel)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(certificatePanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(certificateTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(showActiveCertificateButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        certificatePanelLayout.linkSize(SwingConstants.VERTICAL, new Component[] {certificateTextField, showActiveCertificateButton});

        GroupLayout layout = new GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addComponent(certificatePanel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(certificatePanel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
View Full Code Here

      }
    });

    certificateScrollPane.setViewportView(certificateTextArea);

    GroupLayout layout = new GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(
      GroupLayout.Alignment.LEADING).addGroup(
      GroupLayout.Alignment.TRAILING,
      layout.createSequentialGroup().addContainerGap().addGroup(
        layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
            .addComponent(closeButton, GroupLayout.PREFERRED_SIZE,
              93, GroupLayout.PREFERRED_SIZE).addComponent(
              certificateScrollPane, GroupLayout.DEFAULT_SIZE,
              658, Short.MAX_VALUE)).addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(
      GroupLayout.Alignment.LEADING).addGroup(
      GroupLayout.Alignment.TRAILING,
      layout.createSequentialGroup().addContainerGap().addComponent(
        certificateScrollPane, GroupLayout.DEFAULT_SIZE, 439,
        Short.MAX_VALUE).addPreferredGap(
        LayoutStyle.ComponentPlacement.RELATED).addComponent(
        closeButton).addContainerGap()));
    pack();
View Full Code Here

    });

    driverTable.setModel(driverTableModel);
    driverScrollPane.setViewportView(driverTable);

    GroupLayout layout = new GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(
      GroupLayout.Alignment.LEADING).addGroup(
      layout.createSequentialGroup().addContainerGap().addGroup(
        layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addComponent(fileLabel).addComponent(nameLabel)
            .addComponent(slotLabel).addGroup(
              layout.createSequentialGroup().addGroup(
                layout.createParallelGroup(
                  GroupLayout.Alignment.TRAILING, false)
                    .addComponent(nameTextField,
                      GroupLayout.Alignment.LEADING)
                    .addComponent(slotTextField,
                      GroupLayout.Alignment.LEADING)
                    .addComponent(fileTextField,
                      GroupLayout.Alignment.LEADING,
                      GroupLayout.DEFAULT_SIZE, 322,
                      Short.MAX_VALUE))

              .addPreferredGap(
                LayoutStyle.ComponentPlacement.RELATED)
                  .addGroup(
                    layout.createParallelGroup(
                      GroupLayout.Alignment.LEADING)
                        .addComponent(addButton,
                          GroupLayout.DEFAULT_SIZE,
                          80, Short.MAX_VALUE)
                        .addComponent(browseButton))))
          .addContainerGap(165, Short.MAX_VALUE)).addGroup(
      GroupLayout.Alignment.TRAILING,
      layout.createSequentialGroup().addGap(499, 499, 499).addComponent(
        closeButton, GroupLayout.DEFAULT_SIZE, 74, Short.MAX_VALUE)
          .addContainerGap()).addGroup(
      layout.createSequentialGroup().addContainerGap().addComponent(
        driverScrollPane, GroupLayout.DEFAULT_SIZE, 561,
        Short.MAX_VALUE).addContainerGap()).addGroup(
      GroupLayout.Alignment.TRAILING,
      layout.createSequentialGroup()
          .addContainerGap(499, Short.MAX_VALUE).addComponent(
            deleteButton).addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(
      GroupLayout.Alignment.LEADING).addGroup(
      GroupLayout.Alignment.TRAILING,
      layout.createSequentialGroup().addContainerGap()

      .addComponent(fileLabel).addPreferredGap(
        LayoutStyle.ComponentPlacement.RELATED).addGroup(
        layout
            .createParallelGroup(GroupLayout.Alignment.LEADING,
              false).addComponent(browseButton, 0, 0,
              Short.MAX_VALUE).addComponent(fileTextField))
          .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)

          .addComponent(nameLabel).addPreferredGap(
            LayoutStyle.ComponentPlacement.RELATED).addGroup(
            layout.createParallelGroup(
              GroupLayout.Alignment.BASELINE).addComponent(
              nameTextField, GroupLayout.PREFERRED_SIZE,
              GroupLayout.DEFAULT_SIZE,
              GroupLayout.PREFERRED_SIZE)).addPreferredGap(
            LayoutStyle.ComponentPlacement.RELATED)

          .addComponent(slotLabel).addPreferredGap(
            LayoutStyle.ComponentPlacement.RELATED).addGroup(
            layout.createParallelGroup(
              GroupLayout.Alignment.BASELINE).addComponent(
              slotTextField, GroupLayout.PREFERRED_SIZE,
              GroupLayout.DEFAULT_SIZE,
              GroupLayout.PREFERRED_SIZE).addComponent(addButton,
              GroupLayout.PREFERRED_SIZE, 19,
              GroupLayout.PREFERRED_SIZE)).addGap(28, 28, 28)

          .addComponent(driverScrollPane, GroupLayout.PREFERRED_SIZE,
            195, GroupLayout.PREFERRED_SIZE).addPreferredGap(
            LayoutStyle.ComponentPlacement.RELATED).addComponent(
            deleteButton).addPreferredGap(
            LayoutStyle.ComponentPlacement.RELATED, 9,
            Short.MAX_VALUE).addComponent(closeButton,
            GroupLayout.PREFERRED_SIZE, 10,
            GroupLayout.PREFERRED_SIZE).addContainerGap()));

    layout.linkSize(SwingConstants.VERTICAL, new Component[] { addButton,
        browseButton, closeButton, deleteButton, fileTextField,
        nameTextField });
    pack();
  }
View Full Code Here

    jDateChooserMusteriTarih.setBounds(226, 504, 186, 20);
    jDateChooserMusteriTarih.setDate(new Date());
    ((JTextFieldDateEditor) jDateChooserMusteriTarih.getDateEditor())
        .setEditable(false);

    GroupLayout groupLayout = new GroupLayout(getContentPane());
    groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(
        Alignment.LEADING).addGroup(
        groupLayout
            .createSequentialGroup()
            .addContainerGap()
            .addComponent(cPanelPersonel, GroupLayout.DEFAULT_SIZE,
                485, Short.MAX_VALUE).addGap(9)));
    groupLayout.setVerticalGroup(groupLayout.createParallelGroup(
        Alignment.LEADING).addGroup(
        groupLayout
            .createSequentialGroup()
            .addContainerGap()
            .addComponent(cPanelPersonel,
                GroupLayout.PREFERRED_SIZE, 662,
                Short.MAX_VALUE).addContainerGap()));
    GroupLayout gl_cPanelPersonel = new GroupLayout(cPanelPersonel);
    gl_cPanelPersonel.setHorizontalGroup(gl_cPanelPersonel
        .createParallelGroup(Alignment.LEADING)
        .addGroup(
            gl_cPanelPersonel
                .createSequentialGroup()
                .addComponent(cLabelMusteriEkleme,
                    GroupLayout.DEFAULT_SIZE, 170,
                    Short.MAX_VALUE).addGap(315))
        .addComponent(cPanelPersonelEkleme, GroupLayout.DEFAULT_SIZE,
            485, Short.MAX_VALUE));
    gl_cPanelPersonel.setVerticalGroup(gl_cPanelPersonel
        .createParallelGroup(Alignment.LEADING).addGroup(
            gl_cPanelPersonel
                .createSequentialGroup()
                .addComponent(cLabelMusteriEkleme,
                    GroupLayout.DEFAULT_SIZE,
                    GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
View Full Code Here

    jLabelSubeBilgi = new JLabel();
    jLabelSubeBilgi.setText("Şube :");
    jLabelSubeBilgi.setFont(new Font("Tahoma", Font.BOLD, 14));

    cComboBoxSube = new CComboBox<String>(null);
    GroupLayout gl_jPanelSube = new GroupLayout(jPanelSube);
    gl_jPanelSube.setHorizontalGroup(gl_jPanelSube.createParallelGroup(
        Alignment.LEADING).addGroup(
        gl_jPanelSube
            .createSequentialGroup()
            .addGap(10)
            .addComponent(jLabelSubeBilgi,
                GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE)
            .addGap(10)
            .addComponent(cComboBoxSube, GroupLayout.DEFAULT_SIZE,
                193, Short.MAX_VALUE).addGap(10)));
    gl_jPanelSube
        .setVerticalGroup(gl_jPanelSube
            .createParallelGroup(Alignment.LEADING)
            .addGroup(
                gl_jPanelSube
                    .createSequentialGroup()
                    .addGap(11)
                    .addGroup(
                        gl_jPanelSube
                            .createParallelGroup(
                                Alignment.LEADING)
                            .addGroup(
                                gl_jPanelSube
                                    .createSequentialGroup()
                                    .addComponent(
                                        jLabelSubeBilgi,
                                        GroupLayout.DEFAULT_SIZE,
                                        GroupLayout.DEFAULT_SIZE,
View Full Code Here

    jLabelTekCekim.setFont(new Font("Tahoma", Font.BOLD, 11));

    jTextFieldTekCekim = new CTextField();
    jTextFieldTekCekim.setHorizontalAlignment(SwingConstants.CENTER);
    jTextFieldTekCekim.setColumns(10);
    GroupLayout gl_jPanelBankaAd = new GroupLayout(jPanelBankaAd);
    gl_jPanelBankaAd
        .setHorizontalGroup(gl_jPanelBankaAd
            .createParallelGroup(Alignment.LEADING)
            .addGroup(
                gl_jPanelBankaAd
                    .createSequentialGroup()
                    .addGap(8)
                    .addGroup(
                        gl_jPanelBankaAd
                            .createParallelGroup(
                                Alignment.LEADING)
                            .addComponent(
                                jLabelTekCekim,
                                GroupLayout.PREFERRED_SIZE,
                                128,
                                GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                jLabelBankaAd,
                                GroupLayout.PREFERRED_SIZE,
                                108,
                                GroupLayout.PREFERRED_SIZE))
                    .addGap(34)
                    .addGroup(
                        gl_jPanelBankaAd
                            .createParallelGroup(
                                Alignment.LEADING,
                                false)
                            .addComponent(
                                jTextFieldTekCekim,
                                GroupLayout.DEFAULT_SIZE,
                                GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addComponent(
                                cTextFieldBankaAdi,
                                GroupLayout.DEFAULT_SIZE,
                                158,
                                Short.MAX_VALUE))
                    .addGap(8)));
    gl_jPanelBankaAd
        .setVerticalGroup(gl_jPanelBankaAd
            .createParallelGroup(Alignment.LEADING)
            .addGroup(
                gl_jPanelBankaAd
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        gl_jPanelBankaAd
                            .createParallelGroup(
                                Alignment.TRAILING)
                            .addComponent(
                                cTextFieldBankaAdi,
                                GroupLayout.PREFERRED_SIZE,
                                28,
                                GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                jLabelBankaAd,
                                GroupLayout.PREFERRED_SIZE,
                                25,
                                GroupLayout.PREFERRED_SIZE))
                    .addGap(10)
                    .addGroup(
                        gl_jPanelBankaAd
                            .createParallelGroup(
                                Alignment.BASELINE)
                            .addComponent(
                                jLabelTekCekim,
                                GroupLayout.PREFERRED_SIZE,
                                26,
                                GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                jTextFieldTekCekim,
                                GroupLayout.PREFERRED_SIZE,
                                23,
                                GroupLayout.PREFERRED_SIZE))));
    jPanelBankaAd.setLayout(gl_jPanelBankaAd);

    cPanelVadeBilgi = new JPanel();
    cPanelVadeBilgi.setBorder(new LineBorder(new Color(0, 0, 0), 2));
    cPanelVadeBilgi.setBackground(UIManager.getColor("Button.shadow"));

    jLabelVadeSayisi = new JLabel("Vade Sayısı");
    jLabelVadeSayisi.setFont(new Font("Tahoma", Font.BOLD, 14));

    jLabelKomisyon = new JLabel("Komisyon");
    jLabelKomisyon.setFont(new Font("Tahoma", Font.BOLD, 14));

    jTextFieldKomisyon = new CTextField();
    jTextFieldKomisyon.setHorizontalAlignment(SwingConstants.CENTER);
    jTextFieldKomisyon.setColumns(10);

    jButtonEkle = new JButton("EKLE");
    jButtonEkle.setIcon(PSAUtil
        .getImageIconViaRelativePath("picture/ekle.png"));
    jButtonEkle.setFont(new Font("Tahoma", Font.BOLD, 14));
    jButtonKaydet = new JButton("BANKA KAYDET");
    if (frameState == 0) {
      setTitle("PSA YENİ BANKA EKLEME EKRANI");
      jButtonKaydet.setIcon(PSAUtil
          .getImageIconViaRelativePath("picture/urunEkleme.png"));
    } else {
      setTitle("PSA BANKA GÜNCELLEME EKRANI");
      jButtonKaydet.setText("BANKA GÜNCELLE");
      jButtonKaydet
          .setIcon(PSAUtil
              .getImageIconViaRelativePath("picture/kullaniciGuncelle.png"));
    }
    jButtonKaydet.setFont(new Font("Tahoma", Font.BOLD, 14));
    jButtonIptal = new JButton("İPTAL");
    jButtonIptal.setIcon(PSAUtil
        .getImageIconViaRelativePath("picture/geriButonu.png"));
    jButtonIptal.setFont(new Font("Tahoma", Font.BOLD, 14));
    scrollPaneVadeBilgileri = new JScrollPane();

    cTablePosVadeBilgileri = new CTable((String) null,
        POSVadeBilgileri.class, true, true);
    cTablePosVadeBilgileri
        .setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    scrollPaneVadeBilgileri.setViewportView(cTablePosVadeBilgileri);

    SpinnerModel spinnerModel = new SpinnerNumberModel(2, 2, 1000000, 1);

    spinner = new JSpinner();
    spinner.setModel(spinnerModel);

    GroupLayout gl_cPanelVadeBilgi = new GroupLayout(cPanelVadeBilgi);
    gl_cPanelVadeBilgi
        .setHorizontalGroup(gl_cPanelVadeBilgi
            .createParallelGroup(Alignment.LEADING)
            .addGroup(
                gl_cPanelVadeBilgi
                    .createSequentialGroup()
                    .addGap(10)
                    .addGroup(
                        gl_cPanelVadeBilgi
                            .createParallelGroup(
                                Alignment.LEADING)
                            .addGroup(
                                gl_cPanelVadeBilgi
                                    .createSequentialGroup()
                                    .addGroup(
                                        gl_cPanelVadeBilgi
                                            .createParallelGroup(
                                                Alignment.LEADING)
                                            .addComponent(
                                                jLabelVadeSayisi,
                                                GroupLayout.DEFAULT_SIZE,
                                                80,
                                                Short.MAX_VALUE)
                                            .addGroup(
                                                gl_cPanelVadeBilgi
                                                    .createSequentialGroup()
                                                    .addPreferredGap(
                                                        ComponentPlacement.RELATED)
                                                    .addComponent(
                                                        jLabelKomisyon,
                                                        GroupLayout.DEFAULT_SIZE,
                                                        80,
                                                        Short.MAX_VALUE)))
                                    .addGap(36)
                                    .addGroup(
                                        gl_cPanelVadeBilgi
                                            .createParallelGroup(
                                                Alignment.LEADING)
                                            .addComponent(
                                                jTextFieldKomisyon,
                                                GroupLayout.DEFAULT_SIZE,
                                                59,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                spinner,
                                                GroupLayout.PREFERRED_SIZE,
                                                59,
                                                Short.MAX_VALUE))
                                    .addGap(14)
                                    .addComponent(
                                        jButtonEkle,
                                        GroupLayout.DEFAULT_SIZE,
                                        127,
                                        Short.MAX_VALUE)
                                    .addContainerGap())
                            .addGroup(
                                gl_cPanelVadeBilgi
                                    .createSequentialGroup()
                                    .addGroup(
                                        gl_cPanelVadeBilgi
                                            .createParallelGroup(
                                                Alignment.TRAILING)
                                            .addComponent(
                                                jButtonKaydet,
                                                Alignment.LEADING,
                                                GroupLayout.DEFAULT_SIZE,
                                                GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                scrollPaneVadeBilgileri,
                                                Alignment.LEADING,
                                                GroupLayout.DEFAULT_SIZE,
                                                316,
                                                Short.MAX_VALUE))
                                    .addGap(10))))
            .addGroup(
                gl_cPanelVadeBilgi
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jButtonIptal,
                        GroupLayout.DEFAULT_SIZE, 316,
                        Short.MAX_VALUE)
                    .addContainerGap()));
    gl_cPanelVadeBilgi
        .setVerticalGroup(gl_cPanelVadeBilgi
            .createParallelGroup(Alignment.LEADING)
            .addGroup(
                gl_cPanelVadeBilgi
                    .createSequentialGroup()
                    .addGap(9)
                    .addGroup(
                        gl_cPanelVadeBilgi
                            .createParallelGroup(
                                Alignment.LEADING)
                            .addGroup(
                                gl_cPanelVadeBilgi
                                    .createSequentialGroup()
                                    .addComponent(
                                        jLabelVadeSayisi,
                                        GroupLayout.DEFAULT_SIZE,
                                        26,
                                        Short.MAX_VALUE)
                                    .addGap(35))
                            .addGroup(
                                gl_cPanelVadeBilgi
                                    .createSequentialGroup()
                                    .addPreferredGap(
                                        ComponentPlacement.RELATED)
                                    .addComponent(
                                        spinner,
                                        GroupLayout.DEFAULT_SIZE,
                                        22,
                                        Short.MAX_VALUE)
                                    .addGap(11)
                                    .addGroup(
                                        gl_cPanelVadeBilgi
                                            .createParallelGroup(
                                                Alignment.BASELINE)
                                            .addComponent(
                                                jTextFieldKomisyon,
                                                GroupLayout.PREFERRED_SIZE,
                                                23,
                                                GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                jLabelKomisyon,
                                                GroupLayout.PREFERRED_SIZE,
                                                26,
                                                GroupLayout.PREFERRED_SIZE)))
                            .addGroup(
                                gl_cPanelVadeBilgi
                                    .createSequentialGroup()
                                    .addComponent(
                                        jButtonEkle,
                                        GroupLayout.DEFAULT_SIZE,
                                        60,
                                        Short.MAX_VALUE)
                                    .addGap(1)))
                    .addGap(9)
                    .addComponent(scrollPaneVadeBilgileri,
                        GroupLayout.DEFAULT_SIZE, 197,
                        Short.MAX_VALUE)
                    .addGap(11)
                    .addComponent(jButtonKaydet,
                        GroupLayout.DEFAULT_SIZE, 48,
                        Short.MAX_VALUE)
                    .addPreferredGap(
                        ComponentPlacement.RELATED)
                    .addComponent(jButtonIptal,
                        GroupLayout.DEFAULT_SIZE, 48,
                        Short.MAX_VALUE).addGap(12)));

    cPanelVadeBilgi.setLayout(gl_cPanelVadeBilgi);
    GroupLayout groupLayout = new GroupLayout(getContentPane());
    groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(
        Alignment.LEADING).addGroup(
        groupLayout
            .createSequentialGroup()
            .addGap(10)
            .addGroup(
                groupLayout
                    .createParallelGroup(Alignment.LEADING)
                    .addComponent(jPanelBankaAd,
                        GroupLayout.DEFAULT_SIZE,
                        GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .addComponent(cPanelVadeBilgi,
                        GroupLayout.DEFAULT_SIZE,
                        GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)).addGap(11)));
    groupLayout.setVerticalGroup(groupLayout.createParallelGroup(
        Alignment.LEADING).addGroup(
        groupLayout
            .createSequentialGroup()
            .addGap(11)
            .addComponent(jPanelBankaAd, GroupLayout.DEFAULT_SIZE,
                84, Short.MAX_VALUE)
            .addGap(11)
View Full Code Here

    cLabelTL.setText("TL");
    cLabelTL.setFont(new Font("Tahoma", Font.PLAIN, 15));
    cLabelTL.setBounds(395, 335, 17, 20);
    cPanelPersonelEkleme.add(cLabelTL);

    GroupLayout groupLayout = new GroupLayout(getContentPane());
    groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(
        Alignment.LEADING).addGroup(
        groupLayout
            .createSequentialGroup()
            .addGap(10)
            .addComponent(cPanelPersonel, GroupLayout.DEFAULT_SIZE,
                485, Short.MAX_VALUE).addGap(9)));
    groupLayout.setVerticalGroup(groupLayout.createParallelGroup(
        Alignment.LEADING).addGroup(
        groupLayout
            .createSequentialGroup()
            .addGap(11)
            .addComponent(cPanelPersonel, GroupLayout.DEFAULT_SIZE,
                567, Short.MAX_VALUE).addGap(11)));
    GroupLayout gl_cPanelPersonel = new GroupLayout(cPanelPersonel);
    gl_cPanelPersonel.setHorizontalGroup(gl_cPanelPersonel
        .createParallelGroup(Alignment.LEADING)
        .addGroup(
            gl_cPanelPersonel
                .createSequentialGroup()
                .addComponent(cLabelPersonelGuncelleme,
                    GroupLayout.DEFAULT_SIZE, 275,
                    Short.MAX_VALUE).addGap(210))
        .addComponent(cPanelPersonelEkleme, GroupLayout.DEFAULT_SIZE,
            485, Short.MAX_VALUE));
    gl_cPanelPersonel.setVerticalGroup(gl_cPanelPersonel
        .createParallelGroup(Alignment.LEADING).addGroup(
            gl_cPanelPersonel
                .createSequentialGroup()
                .addComponent(cLabelPersonelGuncelleme,
                    GroupLayout.DEFAULT_SIZE, 20,
                    Short.MAX_VALUE)
                .addGap(6)
View Full Code Here

    jDateChooserPersonelTarih.setBounds(226, 363, 186, 20);
    jDateChooserPersonelTarih.setDate(new Date());
    ((JTextFieldDateEditor) jDateChooserPersonelTarih.getDateEditor())
        .setEditable(false);

    GroupLayout groupLayout = new GroupLayout(getContentPane());
    groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(
        Alignment.LEADING).addGroup(
        groupLayout
            .createSequentialGroup()
            .addGap(10)
            .addComponent(cPanelPersonel, GroupLayout.DEFAULT_SIZE,
                485, Short.MAX_VALUE).addGap(9)));
    groupLayout.setVerticalGroup(groupLayout.createParallelGroup(
        Alignment.LEADING).addGroup(
        groupLayout
            .createSequentialGroup()
            .addGap(11)
            .addComponent(cPanelPersonel, GroupLayout.DEFAULT_SIZE,
                567, Short.MAX_VALUE).addGap(11)));
    GroupLayout gl_cPanelPersonel = new GroupLayout(cPanelPersonel);
    gl_cPanelPersonel.setHorizontalGroup(gl_cPanelPersonel
        .createParallelGroup(Alignment.LEADING)
        .addGroup(
            gl_cPanelPersonel
                .createSequentialGroup()
                .addComponent(cLabelPersonelEkleme,
                    GroupLayout.DEFAULT_SIZE, 170,
                    Short.MAX_VALUE).addGap(315))
        .addComponent(cPanelPersonelEkleme, GroupLayout.DEFAULT_SIZE,
            485, Short.MAX_VALUE));
    gl_cPanelPersonel.setVerticalGroup(gl_cPanelPersonel
        .createParallelGroup(Alignment.LEADING).addGroup(
            gl_cPanelPersonel
                .createSequentialGroup()
                .addComponent(cLabelPersonelEkleme,
                    GroupLayout.DEFAULT_SIZE, 20,
                    Short.MAX_VALUE)
                .addGap(6)
View Full Code Here

TOP

Related Classes of javax.swing.GroupLayout$AutoPreferredGapMatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.