Package javax.swing

Examples of javax.swing.GroupLayout.createSequentialGroup()


                .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)
View Full Code Here


          .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

            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)
View Full Code Here

                                  .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)));
           
View Full Code Here

                                          .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)
View Full Code Here

        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())
View Full Code Here

                    .addComponent(replaceRadioButton))
                .addContainerGap())
        );
        loadModePanelLayout.setVerticalGroup(
            loadModePanelLayout.createParallelGroup(LEADING)
            .addGroup(loadModePanelLayout.createSequentialGroup()
                .addComponent(replaceRadioButton)
                .addPreferredGap(RELATED)
                .addComponent(appendRadioButton))
        );
       
View Full Code Here

        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(
View Full Code Here

    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())
View Full Code Here

                .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)))
        );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.