private void showSubscribedChannels() { try { subscribedChannels = Geo2TagService.loadSubscribedChannelsAsList(authToken); subscribedTable.setModel( new AbstractTableModel() { public int getRowCount() { return subscribedChannels.size(); } public int getColumnCount() { return 2; } @Override public String getColumnName(final int column) { switch (column) { case 0: return "Name"; case 1: return "Description"; } return null; } public Object getValueAt(final int rowIndex, final int columnIndex) { final Channel channel = subscribedChannels.get(rowIndex); switch (columnIndex) { case 0: return channel.getName(); case 1: return channel.getDescription(); } return null; } }); subscribedStatusBarLabel.setText(""); } catch (final Exception e) { subscribedStatusBarLabel.setText("Error: " + e.getMessage()); System.out.println("Error: " + e); e.printStackTrace(); } }