Package com.mucommander.ui.layout

Examples of com.mucommander.ui.layout.YBoxPanel.addSpace()


            yPanel.add(new InformationPane(Translator.get("auth_dialog.authentication_failed"), errorMessage, errorMessage==null?Font.PLAIN:Font.BOLD, InformationPane.ERROR_ICON));
            yPanel.addSpace(5);
            yPanel.add(new JSeparator());
        }

        yPanel.addSpace(5);
       
        this.fileURL = fileURL;

        // Retrieve guest credentials (if any)
        Credentials guestCredentials = fileURL.getGuestCredentials();
View Full Code Here


            buttonGroup.add(userRadioButton);
        }
        // If not, display an introduction label ("please enter a login and password")
        else {
            yPanel.add(new JLabel(Translator.get("auth_dialog.desc")));
            yPanel.addSpace(15);
        }

        // Server URL for which the user has to authenticate
        compPanel.addRow(Translator.get("auth_dialog.server"), new JLabel(fileURL.toString(false)), 10);
View Full Code Here

        yPanel.add(compPanel);

        this.saveCredentialsCheckBox = new JCheckBox(Translator.get("auth_dialog.store_credentials"), saveCredentialsCheckBoxSelected);
        yPanel.add(saveCredentialsCheckBox);

        yPanel.addSpace(5);
        contentPane.add(yPanel, BorderLayout.CENTER);

        // If we have some existing credentials for this location...
        if(selectedCredentials!=null) {
            // Prefill the login and password fields with the selected credentials
View Full Code Here

        shellPanel.addRow(useCustomShellRadioButton, customShellField, 10);
        shellPanel.addRow(Translator.get("prefs_dialog.shell_encoding"), createShellEncodingPanel(parent), 5);

        northPanel.add(shellPanel, 5);

        northPanel.addSpace(10);

        // 'Show splash screen' option
        showSplashScreenCheckBox = new PrefCheckBox(Translator.get("prefs_dialog.show_splash_screen")) {
      public boolean hasChanged() {
        return isSelected() != MuConfigurations.getPreferences().getVariable(MuPreference.SHOW_SPLASH_SCREEN, MuPreferences.DEFAULT_SHOW_SPLASH_SCREEN);
View Full Code Here

  YBoxPanel mainPanel;
  JPanel    okPanel;

  mainPanel   = new YBoxPanel();
  mainPanel.add(new JLabel(Translator.get("setup.intro")));
  mainPanel.addSpace(10);
  mainPanel.add(createThemePanel());
  mainPanel.addSpace(10);
  mainPanel.add(createLookAndFeelPanel());
  mainPanel.addSpace(10);
View Full Code Here

  mainPanel   = new YBoxPanel();
  mainPanel.add(new JLabel(Translator.get("setup.intro")));
  mainPanel.addSpace(10);
  mainPanel.add(createThemePanel());
  mainPanel.addSpace(10);
  mainPanel.add(createLookAndFeelPanel());
  mainPanel.addSpace(10);

  okPanel = new JPanel();
  okPanel.setLayout(new FlowLayout(FlowLayout.TRAILING));
View Full Code Here

  mainPanel.add(new JLabel(Translator.get("setup.intro")));
  mainPanel.addSpace(10);
  mainPanel.add(createThemePanel());
  mainPanel.addSpace(10);
  mainPanel.add(createLookAndFeelPanel());
  mainPanel.addSpace(10);

  okPanel = new JPanel();
  okPanel.setLayout(new FlowLayout(FlowLayout.TRAILING));
  okPanel.add(okButton = new JButton(Translator.get("ok")));
  okButton.addActionListener(this);
View Full Code Here

        }
        languageComboBox.setSelectedIndex(languageIndex);

        languagePanel.add(languageComboBox);
        mainPanel.add(languagePanel);
        mainPanel.addSpace(10);
   
        // Date & time format panel
        YBoxPanel dateTimeFormatPanel = new YBoxPanel();
        dateTimeFormatPanel.setBorder(BorderFactory.createTitledBorder(Translator.get("prefs_dialog.date_time")));
View Full Code Here

        headerConfigurationPanel.add(createHeaderColorsPanel(fontChooser1));

        // Item configuration panel initialization.
        itemConfigurationPanel = new YBoxPanel();
        itemConfigurationPanel.add(fontChooser2);
        itemConfigurationPanel.addSpace(10);
        itemConfigurationPanel.add(createItemColorsPanel(fontChooser1));
       
        // Create the tabbed pane.
        tabbedPane = new JTabbedPane();
        tabbedPane.add(Translator.get("theme_editor.header"), headerConfigurationPanel);
View Full Code Here

      }
        };
        showCenturyCheckBox.setSelected(dateFormat.indexOf("yyyy")!=-1);
        showCenturyCheckBox.addItemListener(this);
        dateFormatPanel.add(showCenturyCheckBox);
        dateFormatPanel.addSpace(10);
        gridPanel.add(dateFormatPanel);

        // Time format
        YBoxPanel timeFormatPanel = new YBoxPanel();
        timeFormatPanel.setBorder(BorderFactory.createTitledBorder(Translator.get("prefs_dialog.time")));
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.