Package javax.swing

Examples of javax.swing.GroupLayout$Group


                }
            }
        });

        // panel layout
        GroupLayout layout = new GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(layout.createSequentialGroup().
                addGroup(layout.createParallelGroup().
                addComponent(radioButton).
                addComponent(decoratedPanel)));
        layout.setVerticalGroup(layout.createSequentialGroup().
                addComponent(radioButton).
                addPreferredGap(ComponentPlacement.RELATED).
                addComponent(decoratedPanel));
    }
View Full Code Here


                propertyEditor.setValue(factory.createCustomColorMode(newColor));
            }
        });

        // panel layout
        GroupLayout layout = new GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(layout.createSequentialGroup().
                addGroup(layout.createParallelGroup().
                addGroup(layout.createSequentialGroup().
                addComponent(radioButton).
                addPreferredGap(ComponentPlacement.RELATED).
                addComponent(customColorButton)).
                addComponent(decoratedPanel)));
        layout.setVerticalGroup(layout.createSequentialGroup().
                addGroup(layout.createParallelGroup().
                addComponent(radioButton).
                addComponent(customColorButton)).
                addPreferredGap(ComponentPlacement.RELATED).
                addComponent(decoratedPanel));
    }
View Full Code Here

    lbldirectoryWillBe = new JLabel("(Directory will be created if it does not exist. Content will be appended to an existing directory)");
   
    statusLabel2 = new JLabel("ooRexxDoc is ready!");
   

    GroupLayout groupLayout = new GroupLayout(getContentPane());
    groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
        .addGroup(groupLayout.createSequentialGroup()
          .addContainerGap()
          .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
            .addGroup(groupLayout.createSequentialGroup()
              .addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
                .addGroup(groupLayout.createSequentialGroup()
                  .addComponent(lblTitle, GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
                  .addGap(18)
                  .addComponent(title, GroupLayout.PREFERRED_SIZE, 282, GroupLayout.PREFERRED_SIZE))
                .addGroup(groupLayout.createSequentialGroup()
                  .addComponent(lblInput, GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
                  .addGap(18)
                  .addComponent(inputScrollPane, GroupLayout.PREFERRED_SIZE, 280, GroupLayout.PREFERRED_SIZE))
                .addGroup(groupLayout.createSequentialGroup()
                  .addComponent(lblOutput, GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
                  .addGap(18)
                  .addComponent(output, GroupLayout.PREFERRED_SIZE, 282, GroupLayout.PREFERRED_SIZE))
                .addGroup(groupLayout.createSequentialGroup()
                  .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                    .addComponent(lblInfoproperties, GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                    .addComponent(label_4, GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                    .addComponent(lblNewLabel, GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                    .addComponent(lbltextDisplayedOn, GroupLayout.PREFERRED_SIZE, 148, GroupLayout.PREFERRED_SIZE))
                  .addPreferredGap(ComponentPlacement.RELATED)
                  .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                    .addComponent(overviewTextScrollPane, GroupLayout.PREFERRED_SIZE, 280, GroupLayout.PREFERRED_SIZE)
                    .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(createDoc)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addComponent(saveConfig)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addComponent(loadConfig)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addComponent(statusLabel))
                    .addGroup(groupLayout.createParallelGroup(Alignment.TRAILING, false)
                      .addComponent(statusLabel2, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                      .addComponent(propertyListScrollPane, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)))
                  .addPreferredGap(ComponentPlacement.RELATED)))
              .addGap(34)
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                .addComponent(addProperty, GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)
                .addComponent(browseOutput, GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)
                .addComponent(inputRemove, GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)
                .addComponent(inputAdd, GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)
                .addComponent(removeProperty, GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)))
            .addGroup(groupLayout.createSequentialGroup()
              .addComponent(lbldirectoryWillBe)
              .addGap(93)
              .addComponent(separator, GroupLayout.PREFERRED_SIZE, 1, GroupLayout.PREFERRED_SIZE)))
          .addContainerGap())
    );
    groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
        .addGroup(groupLayout.createSequentialGroup()
          .addContainerGap()
          .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
            .addComponent(title, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
            .addComponent(lblTitle))
          .addGap(18)
          .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
            .addGroup(groupLayout.createSequentialGroup()
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                .addComponent(inputScrollPane, GroupLayout.PREFERRED_SIZE, 54, GroupLayout.PREFERRED_SIZE)
                .addComponent(lblInput))
              .addGap(18)
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                .addComponent(output, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                .addComponent(lblOutput))
              .addPreferredGap(ComponentPlacement.RELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
                .addComponent(separator, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                .addComponent(lbldirectoryWillBe))
              .addGap(30)
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                .addGroup(groupLayout.createSequentialGroup()
                  .addComponent(label_4)
                  .addPreferredGap(ComponentPlacement.RELATED)
                  .addComponent(lbltextDisplayedOn, GroupLayout.PREFERRED_SIZE, 45, GroupLayout.PREFERRED_SIZE))
                .addComponent(overviewTextScrollPane, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)))
            .addGroup(groupLayout.createSequentialGroup()
              .addPreferredGap(ComponentPlacement.RELATED)
              .addComponent(inputAdd)
              .addPreferredGap(ComponentPlacement.RELATED)
              .addComponent(inputRemove)
              .addGap(18)
              .addComponent(browseOutput)))
          .addGap(18)
          .addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
            .addGroup(groupLayout.createSequentialGroup()
              .addComponent(addProperty)
              .addPreferredGap(ComponentPlacement.RELATED)
              .addComponent(removeProperty)
              .addPreferredGap(ComponentPlacement.RELATED))
            .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
              .addComponent(propertyListScrollPane, GroupLayout.PREFERRED_SIZE, 54, GroupLayout.PREFERRED_SIZE)
              .addGroup(groupLayout.createSequentialGroup()
                .addComponent(lblInfoproperties)
                .addGap(8)
                .addComponent(lblNewLabel))))
          .addGap(2)
          .addComponent(statusLabel2)
          .addPreferredGap(ComponentPlacement.RELATED)
          .addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
            .addGroup(groupLayout.createSequentialGroup()
              .addComponent(statusLabel, GroupLayout.PREFERRED_SIZE, 23, GroupLayout.PREFERRED_SIZE)
              .addGap(15))
            .addGroup(groupLayout.createSequentialGroup()
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                .addComponent(createDoc)
                .addComponent(saveConfig)
                .addComponent(loadConfig))
              .addContainerGap())))
    );
View Full Code Here

   
    setResizable(false);
    setModal(true);
    setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
   
    layout = new GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setAutoCreateGaps(true);
    layout.setAutoCreateContainerGaps(true);
   
    document = element.getOwnerDocument();
View Full Code Here

            JLabel priceLabel  = new JLabel("Price :", SwingConstants.RIGHT);
            JLabel fromLabel   = new JLabel("from ", SwingConstants.RIGHT);
            JLabel toLabel     = new JLabel("to ", SwingConstants.RIGHT);

            JPanel panel = new JPanel();
            GroupLayout layout = new GroupLayout(panel);
            panel.setLayout(layout);
            layout.setAutoCreateContainerGaps(true);
            layout.setAutoCreateGaps(true);
            GroupLayout.SequentialGroup hGroup = layout.createSequentialGroup();
            hGroup.addGroup(layout.createParallelGroup()
                                  .addComponent(titleLabel)
                                  .addComponent(authorLabel)
                                  .addComponent(priceLabel));
            hGroup.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
                                  .addComponent(_title)
                                  .addComponent(_author)
                                  .addGroup(layout.createSequentialGroup()
                                          .addComponent(fromLabel)
                                          .addComponent(_minPrice)
                                          .addComponent(toLabel)
                                          .addComponent(_maxPrice)));
           
            GroupLayout.SequentialGroup vGroup = layout.createSequentialGroup();
            vGroup.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
                    .addComponent(titleLabel)
                    .addComponent(_title));
            vGroup.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
                    .addComponent(authorLabel)
                    .addComponent(_author));
            vGroup.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
                    .addComponent(priceLabel)
                    .addComponent(fromLabel)
                    .addComponent(_minPrice)
                    .addComponent(toLabel)
                    .addComponent(_maxPrice));
           
            layout.setHorizontalGroup(hGroup);
            layout.setVerticalGroup(vGroup);

            JButton searchButton = new JButton("Search", Images.SEARCH);
            searchButton.setHorizontalTextPosition(SwingConstants.LEADING);
            ShowCodeAction showCode = Demo.getInstance().new ShowCodeAction();
            showCode.setPage("Dynamic Query", "server/OpenBookServiceImpl.java.html#buildQuery");
View Full Code Here

        JRadioButton replaceRadioButton = new JRadioButton("Replace");
        loadModePanel.setBorder(BorderFactory.createTitledBorder("Load mode"));
        loadModeButtonGroup.add(appendRadioButton);
        loadModeButtonGroup.add(replaceRadioButton);
        replaceRadioButton.setSelected(true);
        GroupLayout loadModePanelLayout = new GroupLayout(loadModePanel);
        loadModePanel.setLayout(loadModePanelLayout);
        loadModePanelLayout.setHorizontalGroup(
            loadModePanelLayout.createParallelGroup(LEADING)
            .addGroup(loadModePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(loadModePanelLayout.createParallelGroup(LEADING)
                    .addComponent(appendRadioButton)
                    .addComponent(replaceRadioButton))
                .addContainerGap())
        );
        loadModePanelLayout.setVerticalGroup(
            loadModePanelLayout.createParallelGroup(LEADING)
            .addGroup(loadModePanelLayout.createSequentialGroup()
                .addComponent(replaceRadioButton)
                .addPreferredGap(RELATED)
                .addComponent(appendRadioButton))
        );
       
        /* "Field separator" text field */
        final JTextField fieldSeparatorTextfield = new JTextField();
        JLabel fieldSeparatorLabel = new JLabel("Field separator: ");
        fieldSeparatorTextfield.setText(DEFAULT_FIELD_SEPARATOR);

        /* "String delimitator" text field */
        final JTextField stringDelimitatorTextfield = new JTextField();
        JLabel stringDelimitatorLabel = new JLabel("String delimitator: ");
        stringDelimitatorTextfield.setText(DEFAULT_STRING_DELIMITATOR);

        /* "Directory for control files" file chooser */
        final JFileChooser controlFileChooser = new JFileChooser();
        final JPanel controlFilePanel = new JPanel();
        final JTextField controlFileTextfield = new JTextField();
        JButton controlFileButton = new JButton("Choose...");
        controlFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    controlFileButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (controlFileChooser.showOpenDialog(controlFilePanel)==JFileChooser.APPROVE_OPTION) {
          controlFileTextfield.setText(controlFileChooser.getSelectedFile().getAbsolutePath());
        }
      }
    });
        controlFilePanel.setBorder(BorderFactory.createTitledBorder("Directory for control files"));
        GroupLayout controlFilePanelLayout = new GroupLayout(controlFilePanel);
        controlFilePanel.setLayout(controlFilePanelLayout);
        controlFilePanelLayout.setHorizontalGroup(
            controlFilePanelLayout.createParallelGroup(LEADING)
            .addGroup(controlFilePanelLayout.createSequentialGroup()
                .addComponent(controlFileTextfield, PREFERRED_SIZE, CONTROL_FILE_TEXTFIELD_WIDTH, PREFERRED_SIZE)
                .addPreferredGap(RELATED)
                .addComponent(controlFileButton))
        );
        controlFilePanelLayout.setVerticalGroup(
            controlFilePanelLayout.createParallelGroup(LEADING)
            .addGroup(controlFilePanelLayout.createParallelGroup(BASELINE)
                .addComponent(controlFileTextfield, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE)
                .addComponent(controlFileButton))
        );

        /* Dialog buttons */
        JPanel buttonPanel = new JPanel();
        JButton generateButton = new JButton("Generate");
        JButton closeButton = new JButton("Close");
        generateButton.addActionListener(new GenerateControlFileActionListener(stringDelimitatorTextfield, fieldSeparatorTextfield, appendRadioButton, controlFileTextfield, session));
    closeButton.addActionListener(closeDialogActionListener);

    setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    GroupLayout buttonPanelLayout = new GroupLayout(buttonPanel);
        buttonPanel.setLayout(buttonPanelLayout);
        buttonPanelLayout.setHorizontalGroup(
            buttonPanelLayout.createParallelGroup(LEADING)
            .addGroup(buttonPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(generateButton)
                .addPreferredGap(RELATED)
                .addComponent(closeButton)
                .addContainerGap())
        );
        buttonPanelLayout.setVerticalGroup(
            buttonPanelLayout.createParallelGroup(LEADING)
            .addGroup(TRAILING, buttonPanelLayout.createSequentialGroup()
                .addContainerGap(DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(buttonPanelLayout.createParallelGroup(BASELINE)
                    .addComponent(closeButton)
                    .addComponent(generateButton)))
        );

        /* Dialog layout */
        final Container contentPane = getContentPane();
    GroupLayout layout = new GroupLayout(contentPane);
        contentPane.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(LEADING)
                    .addComponent(loadModePanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(LEADING)
                            .addComponent(fieldSeparatorLabel)
                            .addComponent(stringDelimitatorLabel))
                        .addPreferredGap(RELATED)
                        .addGroup(layout.createParallelGroup(LEADING)
                            .addComponent(stringDelimitatorTextfield, PREFERRED_SIZE, SMALL_TEXTFIELDS_WIDTH, PREFERRED_SIZE)
                            .addComponent(fieldSeparatorTextfield, PREFERRED_SIZE, SMALL_TEXTFIELDS_WIDTH, PREFERRED_SIZE)))
                    .addComponent(controlFilePanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE)
                    .addComponent(buttonPanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(loadModePanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE)
                .addPreferredGap(RELATED)
                .addGroup(layout.createParallelGroup(BASELINE)
                    .addComponent(fieldSeparatorLabel)
                    .addComponent(fieldSeparatorTextfield, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE))
                .addPreferredGap(RELATED)
                .addGroup(layout.createParallelGroup(BASELINE)
                    .addComponent(stringDelimitatorLabel)
                    .addComponent(stringDelimitatorTextfield, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE))
                .addPreferredGap(RELATED)
                .addComponent(controlFilePanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE)
                .addPreferredGap(RELATED)
View Full Code Here

    });
    diffTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    diffTable.setDefaultRenderer(Object.class, new DiffCellRenderer());
    jScrollPane1.setViewportView(diffTable);

    final GroupLayout jPanel1Layout = new GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(Alignment.LEADING).addComponent(
      jScrollPane1, GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(Alignment.LEADING).addComponent(
      jScrollPane1, GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE));
    jTabbedPane1.addTab("Columns", jPanel1);

    final GroupLayout jPanel2Layout = new GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout.createParallelGroup(Alignment.LEADING).addGap(0, 395,
      Short.MAX_VALUE));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(Alignment.LEADING).addGap(0, 264,
      Short.MAX_VALUE));
    jTabbedPane1.addTab("Constraints", jPanel2);

    final Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());
    infoPanel = new JPanel();
    infoPanel.setBorder(new EmptyBorder(5, 10, 5, 0));
    infoPanel.setLayout(new GridLayout(2, 1));
    session1Label = new JLabel(i18n.SESSION_LABEL_PREFIX + "1: ");
    session2Label = new JLabel(i18n.SESSION_LABEL_PREFIX + "2: ");
    infoPanel.add(session1Label);
    infoPanel.add(session2Label);

    diffPanel = new JPanel();

    final GroupLayout layout = new GroupLayout(diffPanel);
    diffPanel.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING).addComponent(jTabbedPane1,
      GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(
      layout.createSequentialGroup().addComponent(jTabbedPane1, GroupLayout.DEFAULT_SIZE, 300,
        Short.MAX_VALUE).addContainerGap()));

    contentPane.add(BorderLayout.NORTH, infoPanel);
    contentPane.add(BorderLayout.CENTER, diffPanel);
View Full Code Here

        dialogPane.setLayout(new BorderLayout());

        scrollPane.setViewportView(logArea);

        GroupLayout contentPanelLayout = new GroupLayout(contentPanel);
        contentPanel.setLayout(contentPanelLayout);

        GroupLayout.ParallelGroup parallelGroup = contentPanelLayout.createParallelGroup();
        parallelGroup.addComponent(scrollPane, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE);
        parallelGroup.addComponent(progressBar, GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE);
        parallelGroup.addComponent(progressLabel, GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE);
        contentPanelLayout.setHorizontalGroup(parallelGroup);

        GroupLayout.SequentialGroup sequentialGroup = contentPanelLayout.createSequentialGroup();
        sequentialGroup.addComponent(progressLabel);
        sequentialGroup.addGap(2, 2, 2);
        sequentialGroup.addComponent(progressBar, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE);
        sequentialGroup.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED);
        sequentialGroup.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE);

        contentPanelLayout.setVerticalGroup(contentPanelLayout.createParallelGroup().addGroup(sequentialGroup));

        dialogPane.add(contentPanel, BorderLayout.CENTER);

        buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));
        GridBagLayout buttonLayout = new GridBagLayout();
View Full Code Here

   * Create the panel.
   */
  public ConfigPanel() {
   
    JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
    GroupLayout groupLayout = new GroupLayout(this);
    groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
        .addGroup(groupLayout.createSequentialGroup()
          .addContainerGap()
          .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 430, Short.MAX_VALUE)
          .addContainerGap())
    );
    groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
        .addGroup(groupLayout.createSequentialGroup()
          .addContainerGap()
          .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
          .addContainerGap())
    );
   
    JPanel sqlitePanel = new JPanel();
    tabbedPane.addTab("SQLite Config", null, sqlitePanel, null);
   
    JPanel sqliteVideoPanel = new JPanel();
    sqliteVideoPanel.setBorder(new TitledBorder(null, "Video", TitledBorder.LEADING, TitledBorder.TOP, null, null));
   
    JPanel sqliteMusicPanel = new JPanel();
    sqliteMusicPanel.setBorder(new TitledBorder(null, "Music", TitledBorder.LEADING, TitledBorder.TOP, null, null));
    GroupLayout gl_sqlitePanel = new GroupLayout(sqlitePanel);
    gl_sqlitePanel.setHorizontalGroup(
      gl_sqlitePanel.createParallelGroup(Alignment.TRAILING)
        .addGroup(gl_sqlitePanel.createSequentialGroup()
          .addContainerGap()
          .addGroup(gl_sqlitePanel.createParallelGroup(Alignment.TRAILING)
            .addComponent(sqliteMusicPanel, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 405, Short.MAX_VALUE)
            .addComponent(sqliteVideoPanel, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 405, Short.MAX_VALUE))
          .addContainerGap())
    );
    gl_sqlitePanel.setVerticalGroup(
      gl_sqlitePanel.createParallelGroup(Alignment.LEADING)
        .addGroup(gl_sqlitePanel.createSequentialGroup()
          .addContainerGap()
          .addComponent(sqliteVideoPanel, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(ComponentPlacement.RELATED)
          .addComponent(sqliteMusicPanel, GroupLayout.PREFERRED_SIZE, 83, GroupLayout.PREFERRED_SIZE)
          .addContainerGap(70, Short.MAX_VALUE))
    );
   
    sqliteMusicTextField = new JTextField();
    sqliteMusicTextField.setColumns(10);
   
    JButton btnBrowseMusicDb = new JButton("Browse Music DB File");
    GroupLayout gl_sqliteMusicPanel = new GroupLayout(sqliteMusicPanel);
    gl_sqliteMusicPanel.setHorizontalGroup(
      gl_sqliteMusicPanel.createParallelGroup(Alignment.LEADING)
        .addGroup(gl_sqliteMusicPanel.createSequentialGroup()
          .addContainerGap()
          .addGroup(gl_sqliteMusicPanel.createParallelGroup(Alignment.LEADING)
            .addComponent(sqliteMusicTextField, GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE)
            .addComponent(btnBrowseMusicDb, GroupLayout.PREFERRED_SIZE, 131, GroupLayout.PREFERRED_SIZE))
          .addContainerGap())
    );
    gl_sqliteMusicPanel.setVerticalGroup(
      gl_sqliteMusicPanel.createParallelGroup(Alignment.LEADING)
        .addGroup(gl_sqliteMusicPanel.createSequentialGroup()
          .addComponent(sqliteMusicTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(ComponentPlacement.RELATED)
          .addComponent(btnBrowseMusicDb)
          .addContainerGap(43, Short.MAX_VALUE))
    );
    sqliteMusicPanel.setLayout(gl_sqliteMusicPanel);
   
    sqliteVideoTextField = new JTextField();
    sqliteVideoTextField.setColumns(10);
   
    JButton btnBrowseVideoDb = new JButton("Browse Video DB File");
    GroupLayout gl_sqliteVideoPanel = new GroupLayout(sqliteVideoPanel);
    gl_sqliteVideoPanel.setHorizontalGroup(
      gl_sqliteVideoPanel.createParallelGroup(Alignment.LEADING)
        .addGroup(gl_sqliteVideoPanel.createSequentialGroup()
          .addContainerGap()
          .addGroup(gl_sqliteVideoPanel.createParallelGroup(Alignment.LEADING)
            .addComponent(sqliteVideoTextField, GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE)
            .addComponent(btnBrowseVideoDb))
          .addContainerGap())
    );
    gl_sqliteVideoPanel.setVerticalGroup(
      gl_sqliteVideoPanel.createParallelGroup(Alignment.LEADING)
        .addGroup(gl_sqliteVideoPanel.createSequentialGroup()
          .addComponent(sqliteVideoTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(ComponentPlacement.RELATED)
          .addComponent(btnBrowseVideoDb)
          .addContainerGap(27, Short.MAX_VALUE))
    );
    sqliteVideoPanel.setLayout(gl_sqliteVideoPanel);
    sqlitePanel.setLayout(gl_sqlitePanel);
   
    JPanel mySqlPanel = new JPanel();
    tabbedPane.addTab("mySQL Config", null, mySqlPanel, null);
    GroupLayout gl_mySqlPanel = new GroupLayout(mySqlPanel);
    gl_mySqlPanel.setHorizontalGroup(
      gl_mySqlPanel.createParallelGroup(Alignment.LEADING)
        .addGap(0, 425, Short.MAX_VALUE)
    );
    gl_mySqlPanel.setVerticalGroup(
      gl_mySqlPanel.createParallelGroup(Alignment.LEADING)
        .addGap(0, 250, Short.MAX_VALUE)
    );
    mySqlPanel.setLayout(gl_mySqlPanel);
    setLayout(groupLayout);

View Full Code Here

    JLabel sqLiteMusicLab = new JLabel("SQLite Music DB");
    JLabel sqLiteVideoLab = new JLabel("SQLite Video DB");

    JLabel mySqlLab = new JLabel("Configure MySQL");

    GroupLayout gl_panel_1 = new GroupLayout(panel_1);
    gl_panel_1.setHorizontalGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addContainerGap().addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addComponent(sqLiteVideoLocationLab, GroupLayout.DEFAULT_SIZE, 337, Short.MAX_VALUE).addGroup(gl_panel_1.createSequentialGroup().addComponent(sqLiteVideoLab).addGap(18).addComponent(browseSQLiteVideoFileButt)).addGroup(gl_panel_1.createSequentialGroup().addComponent(sqLiteMusicLab).addGap(18).addComponent(browseSQLiteMusicFileButt)).addComponent(sqLiteMusicLocationLab, GroupLayout.DEFAULT_SIZE, 337, Short.MAX_VALUE)).addContainerGap()));
    gl_panel_1.setVerticalGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addContainerGap().addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE).addComponent(sqLiteVideoLab).addComponent(browseSQLiteVideoFileButt)).addPreferredGap(ComponentPlacement.RELATED).addComponent(sqLiteVideoLocationLab).addGap(18).addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE).addComponent(sqLiteMusicLab).addComponent(browseSQLiteMusicFileButt)).addPreferredGap(ComponentPlacement.RELATED).addComponent(sqLiteMusicLocationLab, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE).addContainerGap(13, Short.MAX_VALUE)));
    panel_1.setLayout(gl_panel_1);
    GroupLayout gl_panel = new GroupLayout(panel);
    gl_panel.setHorizontalGroup(gl_panel.createParallelGroup(Alignment.LEADING).addGroup(gl_panel.createSequentialGroup().addContainerGap().addComponent(mySqlLab).addGap(18).addComponent(configMySQLButt).addContainerGap(182, Short.MAX_VALUE)));
    gl_panel.setVerticalGroup(gl_panel.createParallelGroup(Alignment.LEADING).addGroup(gl_panel.createSequentialGroup().addContainerGap().addGroup(gl_panel.createParallelGroup(Alignment.BASELINE).addComponent(mySqlLab).addComponent(configMySQLButt)).addContainerGap(46, Short.MAX_VALUE)));
    panel.setLayout(gl_panel);

    JPanel panel_2 = new JPanel();
    GroupLayout groupLayout = new GroupLayout(this);
    groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup().addContainerGap().addGroup(groupLayout.createParallelGroup(Alignment.TRAILING).addComponent(panel, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 834, Short.MAX_VALUE).addComponent(panel_2, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 834, Short.MAX_VALUE).addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 834, Short.MAX_VALUE)).addContainerGap()));
    groupLayout.setVerticalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout.createSequentialGroup().addContainerGap().addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE).addPreferredGap(ComponentPlacement.RELATED).addComponent(panel_2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE).addPreferredGap(ComponentPlacement.RELATED).addComponent(panel, GroupLayout.PREFERRED_SIZE, 76, GroupLayout.PREFERRED_SIZE).addGap(19)));

    JLabel lblOr = new JLabel("OR");
    panel_2.add(lblOr);
    setLayout(groupLayout);
View Full Code Here

TOP

Related Classes of javax.swing.GroupLayout$Group

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.