Package com.mucommander.ui.layout

Examples of com.mucommander.ui.layout.XAlignedComponentPanel


        YBoxPanel mainPanel = new YBoxPanel(5);
        mainPanel.setBorder(BorderFactory.createTitledBorder(Translator.get("prefs_dialog.mail_settings")));

        // Text fields panel
        XAlignedComponentPanel compPanel = new XAlignedComponentPanel();

        // Name field
        nameField = new PrefTextField(MuConfigurations.getPreferences().getVariable(MuPreference.MAIL_SENDER_NAME, "")) {
      public boolean hasChanged() {
        return !nameField.getText().equals(MuConfigurations.getPreferences().getVariable(MuPreference.MAIL_SENDER_NAME, ""));
      }
        };
        compPanel.addRow(Translator.get("prefs_dialog.mail_name"), nameField, 10);
   
        // Email field
        emailField = new PrefTextField(MuConfigurations.getPreferences().getVariable(MuPreference.MAIL_SENDER_ADDRESS, "")) {
      public boolean hasChanged() {
        return !emailField.getText().equals(MuConfigurations.getPreferences().getVariable(MuPreference.MAIL_SENDER_ADDRESS, ""));
      }
        };
        compPanel.addRow(Translator.get("prefs_dialog.mail_address"), emailField, 10);

        // SMTP field
        smtpField = new PrefTextField(MuConfigurations.getPreferences().getVariable(MuPreference.SMTP_SERVER, "")) {
      public boolean hasChanged() {
        return !smtpField.getText().equals(MuConfigurations.getPreferences().getVariable(MuPreference.SMTP_SERVER, ""));
      }
        };
        compPanel.addRow(Translator.get("prefs_dialog.mail_server"), smtpField, 10);

        // SMTP port field
        portField = new PrefTextField(""+MuConfigurations.getPreferences().getVariable(MuPreference.SMTP_PORT, MuPreferences.DEFAULT_SMTP_PORT)) {
      public boolean hasChanged() {
        return !portField.getText().equals(String.valueOf(MuConfigurations.getPreferences().getVariable(MuPreference.SMTP_PORT, MuPreferences.DEFAULT_SMTP_PORT)));
      }
        };
        compPanel.addRow(Translator.get("server_connect_dialog.port"), portField, 10);

        mainPanel.add(compPanel, BorderLayout.NORTH);
        add(mainPanel, BorderLayout.NORTH);
       
        nameField.addDialogListener(parent);
View Full Code Here


            Container contentPane = getContentPane();
     
            YBoxPanel mainPanel = new YBoxPanel(5);
 
            // Text fields panel
            XAlignedComponentPanel compPanel = new XAlignedComponentPanel();

            // From (sender) field, non editable
            JLabel fromLabel = new JLabel(MuConfigurations.getPreferences().getVariable(MuPreference.MAIL_SENDER_NAME)
                                          +" <"+MuConfigurations.getPreferences().getVariable(MuPreference.MAIL_SENDER_ADDRESS)+">");
            //      fromField.setEditable(false);
            compPanel.addRow(Translator.get("email_dialog.from")+":", fromLabel, 10);
     
            // To (recipients) field
            toField = new JTextField(lastTo);
            compPanel.addRow(Translator.get("email_dialog.to")+":", toField, 10);
     
            // Subject field
            subjectField = new JTextField(lastSubject);
            compPanel.addRow(Translator.get("email_dialog.subject")+":", subjectField, 15);

            mainPanel.add(compPanel);   
 
            // Body area
            bodyArea = new JTextArea(lastBody);
View Full Code Here

        pnl1.add(pnl1Btns);
        pnl1.add(new JPanel());
        pnlTop.add(pnl1);
       
        XAlignedComponentPanel pnl2 = new XAlignedComponentPanel(5);
        pnl2.setBorder(BorderFactory.createTitledBorder(Translator
                .get("batch_rename_dialog.search_replace")));
        pnl2.addRow(Translator.get("batch_rename_dialog.search_for"),
                edtSearchFor, 5);
        pnl2.addRow(Translator.get("batch_rename_dialog.replace_with"),
                edtReplaceWith, 5);
        pnl2.addRow(Translator.get("batch_rename_dialog.upper_lower_case"),
                cbCase, 5);
        pnlTop.add(pnl2);

        XAlignedComponentPanel pnl3 = new XAlignedComponentPanel(5);
        pnl3.setBorder(BorderFactory.createTitledBorder(Translator
                .get("batch_rename_dialog.counter") + " [C]"));
        pnl3.addRow(Translator.get("batch_rename_dialog.start_at"),
                edtCounterStart, 5);
        pnl3.addRow(Translator.get("batch_rename_dialog.step_by"),
                edtCounterStep, 5);
        pnl3.addRow(Translator.get("batch_rename_dialog.format"),
                cbCounterDigits, 5);
        pnlTop.add(pnl3);

        return pnlTop;
    }
View Full Code Here

        }

        // Add a separator before file details
        yPanel.add(new JSeparator());

        XAlignedComponentPanel tfPanel = new XAlignedComponentPanel(10);

        // If collision type is 'same source and destination' no need to show both source and destination
        if(collisionType==FileCollisionChecker.SAME_SOURCE_AND_DESTINATION) {
            addFileDetails(tfPanel, sourceFile, Translator.get("name"));
        }
View Full Code Here

TOP

Related Classes of com.mucommander.ui.layout.XAlignedComponentPanel

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.