Package java.awt

Examples of java.awt.GridLayout


        JPanel topPanel = new JPanel();
       
        setSize(400, 140);
       
        JPanel labelPanel = new JPanel();
        labelPanel.setLayout(new GridLayout(2, 1, 20, 20));

        passwordLabel.setText("Password:");
        labelPanel.add(passwordLabel);
       

        JPanel fieldsPanel = new JPanel();
        fieldsPanel.setLayout(new GridLayout(2, 1, 20, 20));

        passwordField.setNextFocusableComponent(loginBtn);
        fieldsPanel.add(passwordField);

        JPanel buttonsPanel = new JPanel();
        GridLayout glo = new GridLayout(1, 2);
        glo.setHgap(30);
        buttonsPanel.setLayout(glo);
        buttonsPanel.add(loginBtn);

        JPanel bottomPanel = new JPanel();
        bottomPanel.add(buttonsPanel);
View Full Code Here


    jpSplit0.add(getJpSegPathCount(), null);
    jpSplit0.add(getJpSrcMsg(), null);
    jpSplit0.add(getJpSplitMsg(), null);

    jpSplit0.setSize(400, 200);
    jpSplit0.setLayout(new GridLayout(3, 1));

    return jpSplit0;

  }
View Full Code Here

    jpSplit0.add(getJpSegPathCount(), null);
    jpSplit0.add(getJpSrcMsg(), null);
    jpSplit0.add(getJpSplitMsg(), null);

    jpSplit0.setSize(400, 200);
    jpSplit0.setLayout(new GridLayout(3, 1));

    return jpSplit0;

  }
View Full Code Here

  // <constructors>
  public PdfInspectorSample(
    )
  {
    super(new GridLayout(1,0));

    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    {
      Dimension minimumSize = new Dimension(200, 100);
View Full Code Here

        GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
        new Insets(5, 5, 5, 5), 0, 0));
    /*
     * Button panel and buttons
     */
    this.buttonPanel = new JPanel(new GridLayout(1, 2));
    this.confirmButton = new JButton(confirm);
    this.confirmButton.setDefaultCapable(true);
    this.abortButton = new JButton(abort);
    this.buttonPanel.add(confirmButton);
    this.buttonPanel.add(abortButton);
View Full Code Here

    scrollPane.setPreferredSize(new Dimension(200, 200));
    useColsPanel.add(scrollPane, BorderLayout.SOUTH);
    add(useColsPanel);

    JPanel moveButtonsPanel = new JPanel();
    JPanel buttonPanel = new JPanel(new GridLayout(3,1));
//????? if desired, get fancy and use icons in buttons instead of text ?????????
    JButton moveToNotUsedButton = new JButton("=>");
    moveToNotUsedButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
View Full Code Here

        currentMessage = new JLabel(msg);
        detailMessage = new JLabel("...");
        currentProgressBar = new JProgressBar(0, total - 1);
       
        JPanel panel = new JPanel(new BorderLayout());
        JPanel messagePanel = new JPanel(new GridLayout(2,1));
        messagePanel.add(currentMessage);
        messagePanel.add(detailMessage);
        panel.add(messagePanel, BorderLayout.CENTER);
        panel.add(currentProgressBar, BorderLayout.SOUTH);
       
View Full Code Here

public abstract class AbstractGainButtonPanel extends JPanel {
    protected AbstractButton  gainIncreaseButton;
    protected AbstractButton  gainDecreaseButton;

    public AbstractGainButtonPanel(Skin skin) {
  GridLayout grid;
  setLayout(grid = new GridLayout(2, 1));
        grid.setVgap(0);
        grid.setHgap(0);
  setBorder(new EmptyBorder(0, 0, 0, 0));
  add(gainIncreaseButton = createGainIncreaseButton(skin));
  add(gainDecreaseButton = createGainDecreaseButton(skin));
    }
View Full Code Here

  private void initialize() {
    GridBagConstraints gridBagConstraints = new GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    this.setSize(389, 274);
    this.setLayout(new GridLayout(1, 2));
    this.add(getEntryPanel(), null);
    this.add(getDetailsPanel());
  }
View Full Code Here

   * This method initializes this
   *
   */
  private void initialize() {
    this.setSize(600, 400);
    this.setLayout(new GridLayout(2, 0));
    this.add(getContentPrefixPanel(), null);
    this.add(getProtocolPrefixPanel(), null);
  }
View Full Code Here

TOP

Related Classes of java.awt.GridLayout

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.