Examples of FlowLayout


Examples of java.awt.FlowLayout

      {
        final ZoomListActionPlugin zoomListActionPlugin = (ZoomListActionPlugin) actionPlugin;
        zoomListActionPlugin.setComponent(zoomSelector);

        final JPanel zoomPane = new JPanel();
        zoomPane.setLayout(new FlowLayout(FlowLayout.LEFT));
        zoomPane.add(zoomSelector);
        toolBar.add(zoomPane);
        count += 1;
      }
View Full Code Here

Examples of java.awt.FlowLayout

    buttonPanel.registerKeyboardAction(getConfirmAction(),
        KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),
        JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);

    final JPanel buttonCarrier = new JPanel();
    buttonCarrier.setLayout(new FlowLayout(FlowLayout.RIGHT));
    buttonCarrier.add(buttonPanel);
    return buttonCarrier;
  }
View Full Code Here

Examples of java.awt.FlowLayout

    drillDownProfiles = new DefaultListModel();
    profileList = new JList(drillDownProfiles);
    profileList.setCellRenderer(new DrillDownProfileListRenderer());

    final JPanel buttonPane = new JPanel();
    buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));
    buttonPane.add(new JButton(new NewAction()));
    buttonPane.add(new JButton(new EditAction()));
    buttonPane.add(new JButton(new RemoveAction()));
    buttonPane.add(Box.createHorizontalStrut(10));
    buttonPane.add(new JButton(new LoadAction()));
View Full Code Here

Examples of java.awt.FlowLayout

    else if (type.equals("vbox") || type.equals("hbox"))
      return constructBoxLayout(widget, layoutNode);
    else if (type.equals("border"))
      return new BorderLayout();
    else if (type.equals("flow"))
      return new FlowLayout();
    else if (type.equals("lflow"))
      return new FlowLayout(FlowLayout.LEFT);
    else if (type.equals("rflow"))
      return new FlowLayout(FlowLayout.RIGHT);
    else
      throw new GUIException("Unknown layout ["+type+"]");
  }
View Full Code Here

Examples of java.awt.FlowLayout

        calendar = new GregorianCalendar();
        navigationPanel = new NavigationPanel(this);

        /** actions */
        JPanel actionsPanel = new JPanel();
        actionsPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
       
        JButton buttonCancel = ComponentFactory.getButton(DcResources.getText("lblCancel"));
        buttonCancel.setActionCommand("cancel");
        buttonCancel.addActionListener(this);
        actionsPanel.add(buttonCancel);       
View Full Code Here

Examples of java.awt.FlowLayout

  {
    final JButton button = new JButton(confirmAction);
    button.setDefaultCapable(true);

    final JPanel buttonsPanel = new JPanel();
    buttonsPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));
    buttonsPanel.add(button);
    buttonsPanel.add(new JButton(new CancelAction()));

    final JPanel buttonsCarrierPanel = new JPanel();
    buttonsCarrierPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    buttonsCarrierPanel.add(buttonsPanel);
    return buttonsCarrierPanel;
  }
View Full Code Here

Examples of java.awt.FlowLayout

{
  public DocumentInternalFrame()
  {
    super("Document", true, true, true, true);
    final Container contentPane = getContentPane();
    contentPane.setLayout(new FlowLayout());
    contentPane.add(new JLabel("Some text"));
    contentPane.add(new JButton("A button"));
    contentPane.add(new JLabel("Some more text"));
  }
View Full Code Here

Examples of java.awt.FlowLayout

    table.setRowHeight(26);
    final JScrollPane scrollPane = new JScrollPane(table);
    add(scrollPane, BorderLayout.CENTER);

    final JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.TRAILING));
    buttonPanel.add(new ActionButton(new SelectRepositoryFileAction()));
    add(buttonPanel, BorderLayout.SOUTH);

    loadData(findDataFile());
  }
View Full Code Here

Examples of java.awt.FlowLayout

    buttonHolder.add(new JButton(loadAction));
    buttonHolder.add(new JButton(saveAction));
    buttonHolder.add(new JButton(closeAction));

    final JPanel panel = new JPanel();
    panel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    panel.setBorder(new EmptyBorder(5, 5, 5, 5));
    panel.add(buttonHolder);
    return panel;
  }
View Full Code Here

Examples of java.awt.FlowLayout

      out = sess.getStdin();

      this.x = x;
      this.y = y;

      botPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));

      logoffButton = new JButton("Logout");
      botPanel.add(logoffButton);

      logoffButton.addActionListener(new ActionListener()
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.