Package java.awt

Examples of java.awt.FlowLayout


    final JLabel c = (JLabel) pb.addSeparator(mLocalizer.msg("autoCloseReminder", "Automatically close reminder"), cc.xyw(1,15,10)).getComponent(0);
    c.setEnabled(mReminderWindowChB.isSelected());
   
    pb.add(autoClosePanel.getPanel(), cc.xyw(2,17,5));
   
    JPanel reminderEntry = new JPanel(new FlowLayout(FlowLayout.LEADING,0,0));
    reminderEntry.add(mDefaultReminderEntryList);
   
    pb.addSeparator(mLocalizer.msg("defaltReminderEntry","Default reminder time"), cc.xyw(1,19,10));
    pb.add(reminderEntry, cc.xyw(2,21,4));
   
View Full Code Here


    pn1.add(new JLabel(mLocalizer.msg("howToChange","You can change the behavior under Settings -> Reminder")), BorderLayout.SOUTH);

    northPn.add(pn1);

    JPanel btnPn=new JPanel(new FlowLayout(FlowLayout.TRAILING));
    btnPn.setBorder(BorderFactory.createEmptyBorder(10,0,0,0));

    JButton okBtn=new JButton(Localizer.getLocalization(Localizer.I18N_OK));
    okBtn.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
View Full Code Here

    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

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

    final JPanel buttonsPanel = new JPanel();
    buttonsPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));
    buttonsPanel.setBorder(BorderFactory.createMatteBorder(1, 0, 0, 0, Color.LIGHT_GRAY));
    buttonsPanel.add(okButton);
    buttonsPanel.add(new JButton(new CancelAction()));
    return buttonsPanel;
  }
View Full Code Here

   * @return a panel containing the 'OK' and 'Details' buttons.
   */
  private JPanel createButtonPane()
  {
    final JPanel buttonPane = new JPanel();
    buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));
    buttonPane.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
    final OKAction okAction = new OKAction();

    final JButton ok = new ActionButton(okAction);
    final JButton details = new ActionButton(detailsAction);
View Full Code Here

    setLayout(new BorderLayout());
    dateField.setEditable(true);

    pickDateButton = new JButton(new PickDateListener());

    final JPanel datePanel = new JPanel(new FlowLayout());
    datePanel.add(dateField);
    datePanel.add(pickDateButton);
    add(datePanel, BorderLayout.WEST);

    this.updateContext.addChangeListener(new DateUpdateHandler(parameterName));
View Full Code Here

      {
        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

    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

    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

    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

TOP

Related Classes of java.awt.FlowLayout

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.