Package util.ui

Examples of util.ui.Localizer


      }
    });
   
    JPanel priority = new JPanel(new FormLayout("pref,5dlu,pref","1dlu,pref"));
   
    Localizer localizer = MarkingsSettingsTab.mLocalizer;
   
    String[] colors = {localizer.msg("color.minPriority","1. Color (minimum priority)"),localizer.msg("color.lowerMediumPriority","2. Color (lower medium priority)"),localizer.msg("color.mediumPriority","3. Color (Medium priority)"),localizer.msg("color.higherMediumPriority","4. Color (higher medium priority)"),localizer.msg("color.maxPriority","5. Color (maximum priority)")};
   
    mPriorityText = new JLabel(mLocalizer.msg("importantMarkPriority","Mark priority higher or the same like:"));
   
    mPriority = new JComboBox(colors);
    mPriority.setSelectedIndex(Settings.propTrayImportantProgramsPriority.getInt());
View Full Code Here


    panel.setBorder(BorderFactory.createLineBorder(Color.BLACK));

    panel.setLayout(new FormLayout("3dlu, pref, 3dlu", "3dlu, pref, 3dlu, pref, 3dlu"));
    CellConstraints cc = new CellConstraints();

    Localizer localizer = Localizer.getLocalizerFor(CopyWaitingDlg.class);
   
    String msg = localizer.msg("waitingHeader", "Importing TV data (this can take some minutes).");
    JTextArea header = new JTextArea();
    header.setPreferredSize(new Dimension(370,40));
   
    if(messageType == IMPORT_MSG) {
      msg = localizer.msg("waitingHeaderCopy", "Copying TV data (this can take some minutes).");
    }
    else if(messageType == APPDATA_MSG) {
      msg = localizer.msg("appdataHeaderMsg", "Copying TV data (this can need some minutes).\nThe data and the settings are copied to the\n" +
          "Windows appdata directory. You can delete the old TV-Browser settings directory\n if you don't use an old version of TV-Browser.");
      header.setPreferredSize(new Dimension(370,90));
    }
    else if(messageType == EXPORT_SETTINGS_MSG) {
      msg = localizer.msg("exportHeader","Copying TV data (this can need some minutes).\nThe data and the settings are copied to the\n"+
          "system settings directory.");
      header.setPreferredSize(new Dimension(370,60));
    }
    else {
      msg = localizer.msg("waitingSettingsHeader","Importing the settings of a previous version (this may take some minutes).");
    }
   
    header.setText(msg);
    header.setEditable(false);
    header.setLineWrap(true);
    header.setWrapStyleWord(true);
    header.setBorder(null);
    header.setOpaque(false);
   
    JLabel label = new JLabel(localizer.msg("pleaseWait", "Please wait until the files were copied."));
   
    header.setFont(label.getFont());
    header.setFont(header.getFont().deriveFont(Font.BOLD,(float)13));
   
    label.setFont(header.getFont());
View Full Code Here

  public JPanel getSettingsPanel() {
    CellConstraints cc = new CellConstraints();
    JPanel p = new JPanel(new FormLayout("default", "pref"));

    Localizer localizer = MarkingsSettingsTab.mLocalizer;
    String[] values = {
        localizer.msg("color.minPriority", "1. Color (minimum priority)"),
        localizer.msg("color.lowerMediumPriority",
            "2. Color (lower medium priority)"),
        localizer.msg("color.mediumPriority", "3. Color (Medium priority)"),
        localizer.msg("color.higherMediumPriority",
            "4. Color (higher medium priority)"),
        localizer.msg("color.maxPriority", "5. Color (maximum priority)") };

    mValueSelection = new JComboBox(values);
    mValueSelection.setSelectedIndex(mMarkPriority);
    mValueSelection.setRenderer(new MarkPriorityComboBoxRenderer());
View Full Code Here

          mLog.info("Using settings from file " + settingsFile.getAbsolutePath());
        }
      } catch (IOException evt) {

        if(firstSettingsBackupFile.isFile() || secondSettingsBackupFile.isFile()) {
          Localizer localizer = Localizer.getLocalizerFor(Settings.class);
          if(JOptionPane.showConfirmDialog(null,localizer.msg("settingBroken","Settings file broken.\nWould you like to load the backup file?\n\n(If you select No, the\ndefault settings are used)"),Localizer.getLocalization(Localizer.I18N_ERROR),JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE) == JOptionPane.OK_OPTION) {
            boolean loadSecondBackup = !firstSettingsBackupFile.isFile();

            if(firstSettingsBackupFile.isFile()) {
              try {
                mProp.readFromFile(firstSettingsBackupFile);
View Full Code Here

TOP

Related Classes of util.ui.Localizer

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.