SettingsDialog.getInstance().showSettingsTab(SettingsItem.TRAY);
}
}
});
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());
mPriority.setRenderer(new MarkPriorityComboBoxRenderer());
priority.add(mPriorityText, cc.xy(1,2));
priority.add(mPriority, cc.xy(3,2));
JPanel c = (JPanel) builder.addSeparator(mLocalizer.msg("important","Important programs"), cc.xyw(1,1,8));
builder.add(mIsEnabled, cc.xyw(2,3,6));
builder.add(mShowInTray, cc.xyw(3,4,5));
builder.add(mShowInSubMenu, cc.xyw(3,5,5));
mSizeLabel = builder.addLabel(mLocalizer.msg("importantSize","Number of shown programs:"), cc.xy(3,6));
builder.add(mSize, cc.xy(5,6));
mSizeInfo = builder.addLabel(mLocalizer.msg("sizeInfo","(maximum: {0})",maxSizeValue), cc.xy(7,6));
builder.add(priority, cc.xyw(3,7,5));
JPanel c1 = (JPanel) builder.addSeparator(mLocalizer.msg("iconNameSeparator","Channel icons/channel name"), cc.xyw(1,9,8));
builder.add(mShowIconAndName, cc.xyw(2,11,6));
builder.add(mShowIcon, cc.xyw(2,12,6));
builder.add(mShowName, cc.xyw(2,13,6));
JPanel c2 = (JPanel) builder.addSeparator(mLocalizer.msg("settings","Settings"), cc.xyw(1,15,8));
builder.add(mShowDate, cc.xyw(2,17,6));
builder.add(mShowTime, cc.xyw(2,18,6));
builder.add(mShowToolTip, cc.xyw(2,19,6));
builder.add(mHelpLabel, cc.xyw(1,21,8));
mSeparator1 = (JLabel)c.getComponent(0);
mIconSeparator = (JLabel)c1.getComponent(0);
mSeparator2 = (JLabel)c2.getComponent(0);
setEnabled(true);
mShowInSubMenu.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {