Examples of FlowLayout


Examples of java.awt.FlowLayout

      pb.add(mDeleteRemovedPrograms, cc.xyw(2,22,4));
      pb.add(mOldPrograms, cc.xyw(2,23,4));
     
      pb.add(mUseTime, cc.xyw(2,25,4));
     
      JPanel timeZonePanel = new JPanel(new FlowLayout(FlowLayout.LEFT,0,0));
      mTimeZoneLabel = new JLabel(mLocalizer.msg("Timezone","Timezone")+": ");
      mTimeZoneLabel.setEnabled(mTimeZones.isEnabled());
      timeZonePanel.add(mTimeZoneLabel);
      timeZonePanel.add(mTimeZones);
     
View Full Code Here

Examples of java.awt.FlowLayout

    eastBtnPanel.add(previewBtn);
    eastPanel.add(eastBtnPanel, BorderLayout.NORTH);


    JPanel southPanel = new JPanel(new BorderLayout());
    JPanel okCancelBtnPanel = new JPanel(new FlowLayout());
    JButton printBt = new JButton(mLocalizer.msg("print","Drucken"));
    JButton cancelBt = new JButton(Localizer.getLocalization(Localizer.I18N_CANCEL));
    okCancelBtnPanel.add(printBt);
    okCancelBtnPanel.add(cancelBt);
    southPanel.add(okCancelBtnPanel, BorderLayout.EAST);
View Full Code Here

Examples of java.awt.FlowLayout

    mEditorPane.setEditable(false);
   
    main.add(mScrollPane = new JScrollPane(mEditorPane));

    // buttons
    JPanel buttonPn = new JPanel(new FlowLayout(FlowLayout.TRAILING));
    main.add(buttonPn, BorderLayout.SOUTH);
   
    buttonPn.add(mBackButton = new JButton(Localizer.getLocalization(Localizer.I18N_BACK)));
    mBackButton.addActionListener(this);
    mBackButton.setEnabled(false);
View Full Code Here

Examples of java.awt.FlowLayout

  public TimePeriodChooser(int alignment) {
    this(-1, -1, alignment);
  }

  public TimePeriodChooser(int from, int to, int alignment) {
    FlowLayout layout = new FlowLayout(FlowLayout.LEFT, 0, 0);
   
    JPanel content = new JPanel(new FormLayout("pref, 3dlu, pref, 3dlu, pref, 3dlu, pref", "pref"));
   
    mTimeFromSp = new JSpinner(new SpinnerDateModel());
    JSpinner.DateEditor dateEditor = new JSpinner.DateEditor(mTimeFromSp, Settings.getTimePattern());
    mTimeFromSp.setEditor(dateEditor);
    CaretPositionCorrector.createCorrector(dateEditor.getTextField(), new char[] {':'}, -1);
   
    mTimeToSp = new JSpinner(new SpinnerDateModel());
    dateEditor = new JSpinner.DateEditor(mTimeToSp, Settings.getTimePattern());
    mTimeToSp.setEditor(dateEditor);
    CaretPositionCorrector.createCorrector(dateEditor.getTextField(), new char[] {':'}, -1);
   
    CellConstraints cc = new CellConstraints();

    content.add(mLabel1 = new JLabel(mLocalizer.msg("between", "between")), cc.xy(1, 1));
    content.add(mTimeFromSp, cc.xy(3, 1));
    content.add(mLabel2 = new JLabel(mLocalizer.msg("and", "and")), cc.xy(5, 1));
    content.add(mTimeToSp, cc.xy(7, 1));

    if (from >= 0) {
      setFromTime(from);
    }
    if (to >= 0) {
      setToTime(to);
    }

    if (alignment == ALIGN_LEFT) {
      layout.setAlignment(FlowLayout.LEFT);
    } else if (alignment == ALIGN_RIGHT) {
      layout.setAlignment(FlowLayout.RIGHT);
    } else {
      layout.setAlignment(FlowLayout.CENTER);
    }
    setLayout(layout);
    add(content);
  }
View Full Code Here

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

Examples of java.awt.FlowLayout

    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

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

  {
    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

Examples of java.awt.FlowLayout

   * @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

Examples of java.awt.FlowLayout

    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
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.