Examples of FluentPanel


Examples of com.mucommander.ui.layout.FluentPanel

     * Creates the about box's left panel.
     */
  private JPanel createIconPanel() {

    // Makes sure the panel's a bit roomier than the default configuration.
    return new FluentPanel(new BorderLayout()) {
      @Override
      public Insets getInsets() {
        return new Insets(10, 10, 0, 10);
      }
    }.add(new FluentPanel(new BorderLayout())
                  .add(new JLabel(IconManager.getIcon(IconManager.MUCOMMANDER_ICON_SET, "icon128_24.png")),
                     BorderLayout.NORTH)
                  .add(new FluentPanel(new FlowLayout(FlowLayout.CENTER)).add(createAppString()),
                 BorderLayout.CENTER)
            .add(new FluentPanel(new FlowLayout(FlowLayout.CENTER)).add(createCopyright()),
                 BorderLayout.SOUTH),
              BorderLayout.NORTH)
     .add(new FluentPanel(new BorderLayout())
                  .add(createHomeComponent(), BorderLayout.NORTH)
                  .add(createLicenseButton(), BorderLayout.CENTER)
                  .add(createOkButton(), BorderLayout.SOUTH),
          BorderLayout.SOUTH);
  }
View Full Code Here

Examples of com.mucommander.ui.layout.FluentPanel

  }

  private Component createHomeComponent() {
    return DesktopManager.canBrowse() ?
            createHomeButton()
            : new FluentPanel(new FlowLayout(FlowLayout.CENTER)).add(new JLabel(RuntimeConstants.HOMEPAGE_URL));
  }
View Full Code Here

Examples of com.mucommander.ui.layout.FluentPanel

        nowRadioButton = new JRadioButton(Translator.get("change_date_dialog.now"));
        nowRadioButton.setSelected(true);
        nowRadioButton.addItemListener(this);

        mainPanel.add(new FluentPanel(new FlowLayout(FlowLayout.LEFT)).add(nowRadioButton));

        buttonGroup.add(nowRadioButton);
        JRadioButton specificDateRadioButton = new JRadioButton(Translator.get("change_date_dialog.specific_date"));
        buttonGroup.add(specificDateRadioButton);

        this.dateSpinner = new JSpinner(new SpinnerDateModel());
        dateSpinner.setEditor(new JSpinner.DateEditor(dateSpinner, CustomDateFormat.getDateFormatString()));
        // Use the selected file's date if there is only one file, if not use base folder's date.
        dateSpinner.setValue(new Date(destFile.getDate()));
        // Spinner is disabled until the 'Specific date' radio button is selected
        dateSpinner.setEnabled(false);

        mainPanel.add(new FluentPanel(new FlowLayout(FlowLayout.LEFT))
                          .add(specificDateRadioButton)
                          .add(dateSpinner));

        mainPanel.addSpace(10);
        recurseDirCheckBox = new JCheckBox(Translator.get("recurse_directories"));
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.