Package javax.swing

Examples of javax.swing.GroupLayout.createSequentialGroup()


        setLayout(layout);
        createEmployeeListPanel();
        JPanel headerPanel = createHeaderPanel();
        layout.setHorizontalGroup(layout.createParallelGroup()
                .addComponent(headerPanel).addComponent(employeeListPanel));
        layout.setVerticalGroup(layout.createSequentialGroup()
                .addComponent(headerPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE)
                .addComponent(employeeListPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE));
    }
View Full Code Here


        setLayout(layout);
        createMachineListPanel();
        JPanel headerPanel = new JPanel();
        layout.setHorizontalGroup(layout.createParallelGroup()
                .addComponent(headerPanel).addComponent(machineListPanel));
        layout.setVerticalGroup(layout.createSequentialGroup()
                .addComponent(headerPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE)
                .addComponent(machineListPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE));
    }
View Full Code Here

        setLayout(layout);
        JPanel headerPanel = createHeaderPanel();
        JPanel computersPanel = createComputersPanel();
        layout.setHorizontalGroup(layout.createParallelGroup()
                .addComponent(headerPanel).addComponent(computersPanel));
        layout.setVerticalGroup(layout.createSequentialGroup()
                .addComponent(headerPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE)
                .addComponent(computersPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE));
    }
View Full Code Here

      });

      okButton.setSize(okButton.getPreferredSize());

      // Add the labels.
      groupLayout.setHorizontalGroup(groupLayout.createSequentialGroup()
          .addGroup(
              groupLayout.createParallelGroup().addComponent(
                  textLabel).addComponent(this.label)
                  .addComponent(okButton)));
View Full Code Here

          .addGroup(
              groupLayout.createParallelGroup().addComponent(
                  textLabel).addComponent(this.label)
                  .addComponent(okButton)));

      groupLayout.setVerticalGroup(groupLayout.createSequentialGroup()
          .addComponent(textLabel).addComponent(this.label).addComponent(
              okButton));

    }
View Full Code Here

            }
        });
        GroupLayout groupLayout = new GroupLayout(this);
        groupLayout.setHorizontalGroup(
          groupLayout.createParallelGroup(Alignment.TRAILING)
            .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap(477, Short.MAX_VALUE)
              .addComponent(nextButton, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE)
              .addContainerGap())
            .addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
              .addGap(265)
View Full Code Here

          groupLayout.createParallelGroup(Alignment.TRAILING)
            .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap(477, Short.MAX_VALUE)
              .addComponent(nextButton, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE)
              .addContainerGap())
            .addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
              .addGap(265)
              .addComponent(gameTitleLabel)
              .addContainerGap(264, Short.MAX_VALUE))
            .addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
              .addGap(109)
View Full Code Here

              .addContainerGap())
            .addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
              .addGap(265)
              .addComponent(gameTitleLabel)
              .addContainerGap(264, Short.MAX_VALUE))
            .addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
              .addGap(109)
              .addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
                .addComponent(addMembersLabel)
                .addComponent(professionTextField)
                .addComponent(enterNameLabel))
View Full Code Here

                .addComponent(enterNameTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
              .addContainerGap(173, Short.MAX_VALUE))
        );
        groupLayout.setVerticalGroup(
          groupLayout.createParallelGroup(Alignment.LEADING)
            .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap()
              .addComponent(gameTitleLabel, GroupLayout.PREFERRED_SIZE, 26, GroupLayout.PREFERRED_SIZE)
              .addGap(18)
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                .addComponent(enterNameTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
View Full Code Here

       
        JLabel lblNewLabel = new JLabel("Rations and Pace");
        GroupLayout groupLayout = new GroupLayout(this);
        groupLayout.setHorizontalGroup(
            groupLayout.createParallelGroup(Alignment.LEADING)
                .addGroup(groupLayout.createSequentialGroup()
                    .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                        .addGroup(groupLayout.createSequentialGroup()
                            .addContainerGap(268, Short.MAX_VALUE)
                            .addComponent(backButton)
                            .addPreferredGap(ComponentPlacement.RELATED)
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.