void () { myUpdateButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doUpdateIndex(); } }); myIndicesTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { @Override public void valueChanged(ListSelectionEvent e) { updateButtonsState(); } }); myIndicesTable.addMouseMotionListener(new MouseMotionListener() { @Override public void mouseDragged(MouseEvent e) { } @Override public void mouseMoved(MouseEvent e) { int row = myIndicesTable.rowAtPoint(e.getPoint()); if (row == -1) return; updateIndexHint(row); } }); myIndicesTable.setDefaultRenderer(Object.class, new MyCellRenderer()); myIndicesTable.setDefaultRenderer(MavenIndexUpdateManager.IndexUpdatingState.class, new MyIconCellRenderer()); myIndicesTable.getEmptyText().setText(MavenConfigurableBundle.message("maven.settings.repositories.no")); updateButtonsState(); }