PanelBuilder pb = new PanelBuilder(new FormLayout("5dlu, default:grow, 5dlu",
"default,5dlu,default,default,default,5dlu,default,10dlu,default,5dlu,default,default,default"));
pb.setDefaultDialogBorder();
pb.addSeparator(mLocalizer.msg("programTable","Program table"), cc.xyw(1,1,3));
pb.add(mShowIconAndNameInProgramTable = new JRadioButton(mLocalizer.msg("showIconAndName","Show channel icon and channel name"), Settings.propShowChannelIconsInProgramTable.getBoolean() && Settings.propShowChannelNamesInProgramTable.getBoolean()), cc.xy(2,3));
pb.add(mShowOnlyIconInProgramTable = new JRadioButton(mLocalizer.msg("showOnlyIcon","Show channel icon"), Settings.propShowChannelIconsInProgramTable.getBoolean() && !Settings.propShowChannelNamesInProgramTable.getBoolean()), cc.xy(2,4));
pb.add(mShowOnlyNameInProgramTable = new JRadioButton(mLocalizer.msg("showOnlyName","Show channel name"), Settings.propShowChannelNamesInProgramTable.getBoolean() && !Settings.propShowChannelIconsInProgramTable.getBoolean()), cc.xy(2,5));
pb.add(mShowTooltipInProgramTable = new JCheckBox(mLocalizer.msg("showToolTip","Show large channel icons in tooltip"), Settings.propShowChannelTooltipInProgramTable.getBoolean()), cc.xy(2,7));
mShowTooltipInProgramTable.setEnabled(!mShowOnlyNameInProgramTable.isSelected());
mShowOnlyNameInProgramTable.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
mShowTooltipInProgramTable.setEnabled(e.getStateChange() == ItemEvent.DESELECTED);
}
});
ButtonGroup programTable = new ButtonGroup();
programTable.add(mShowIconAndNameInProgramTable);
programTable.add(mShowOnlyIconInProgramTable);
programTable.add(mShowOnlyNameInProgramTable);
pb.addSeparator(mLocalizer.msg("channelLists","Channel lists"), cc.xyw(1,9,3));
pb.add(mShowIconAndNameInChannelLists = new JRadioButton(mLocalizer.msg("showIconAndName","Show channel icon and channel name"), Settings.propShowChannelIconsInChannellist.getBoolean() && Settings.propShowChannelNamesInChannellist.getBoolean()), cc.xy(2,11));
pb.add(mShowOnlyIconInChannelLists = new JRadioButton(mLocalizer.msg("showOnlyIcon","Show channel icon"), Settings.propShowChannelIconsInChannellist.getBoolean() && !Settings.propShowChannelNamesInChannellist.getBoolean()), cc.xy(2,12));
pb.add(mShowOnlyNameInChannelLists = new JRadioButton(mLocalizer.msg("showOnlyName","Show channel name"), Settings.propShowChannelNamesInChannellist.getBoolean() && !Settings.propShowChannelIconsInChannellist.getBoolean()), cc.xy(2,13));
ButtonGroup channelLists = new ButtonGroup();
channelLists.add(mShowIconAndNameInChannelLists);
channelLists.add(mShowOnlyIconInChannelLists);
channelLists.add(mShowOnlyNameInChannelLists);