DefaultListModel listModel = new DefaultListModel();
for (int i = 0; i < mAddedList.size(); i++) {
listModel.addElement(mAddedList.get(i));
}
ChannelJList list = new ChannelJList(listModel);
list.setCellRenderer(new ChannelListCellRenderer(true, true));
panelAdded.add(new JScrollPane(list), BorderLayout.CENTER);
JPanel panelDeleted = new JPanel(new BorderLayout());
panelDeleted.setBorder(BorderFactory.createTitledBorder(mLocalizer.msg("deleted", "Removed channels: {0}", mDeletedList.size())));
listModel = new DefaultListModel();
for (int i = 0; i < mDeletedList.size(); i++) {
listModel.addElement(mDeletedList.get(i));
}
list = new ChannelJList(listModel);
list.setCellRenderer(new ChannelListCellRenderer(true, true));
panelDeleted.add(new JScrollPane(list), BorderLayout.CENTER);
JPanel btnPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
JButton ok = new JButton(Localizer.getLocalization(Localizer.I18N_OK));