diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/CustomTableModel.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/CustomTableModel.java deleted file mode 100644 index 8dd0f8dec..000000000 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/CustomTableModel.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. - * - * Distributable under LGPL license. - * See terms of license at gnu.org. - */ -package net.java.sip.communicator.impl.gui.main.contactlist.addcontact; - -import javax.swing.table.DefaultTableModel; - -/** - * Custom table model, that allows represent a boolean value with a check - * box. - * - * @author Yana Stamcheva - */ -public class CustomTableModel extends DefaultTableModel { - - /* - * JTable uses this method to determine the default renderer/ - * editor for each cell. If we didn't implement this method, - * then the first column in the wizard would contain text - * ("true"/"false"), rather than a check box. - */ - public Class getColumnClass(int c) { - return getValueAt(0, c).getClass(); - } -} diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/LabelTableCellRenderer.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/LabelTableCellRenderer.java deleted file mode 100644 index 843786751..000000000 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/addcontact/LabelTableCellRenderer.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. - * - * Distributable under LGPL license. - * See terms of license at gnu.org. - */ -package net.java.sip.communicator.impl.gui.main.contactlist.addcontact; - -import java.awt.Component; - -import javax.swing.JLabel; -import javax.swing.JTable; -import javax.swing.table.TableCellRenderer; - -import net.java.sip.communicator.service.contactlist.MetaContactGroup; -import net.java.sip.communicator.service.protocol.ProtocolProviderService; - -/** - * Custom TableCellRenderer that renders - * ProtocolProviderService objects and MetaContactGroup - * objects. - * - * @author Yana Stamcheva - */ -public class LabelTableCellRenderer extends JLabel - implements TableCellRenderer { - - public LabelTableCellRenderer(){ - setHorizontalAlignment(JLabel.CENTER); - } - - public Component getTableCellRendererComponent(JTable table, Object value, - boolean isSelected, boolean hasFocus, int row, int column) { - - if(value instanceof JLabel) { - JLabel label = (JLabel)value; - - this.setText(label.getText()); - this.setIcon(label.getIcon()); - } - else if (value instanceof ProtocolProviderService) { - ProtocolProviderService pps = (ProtocolProviderService)value; - this.setText(pps.getAccountID().getAccountUserID()); - } - else if (value instanceof MetaContactGroup) { - MetaContactGroup group = (MetaContactGroup) value; - this.setText(group.getGroupName()); - } - return this; - } -}