TableItem item = table.getItem(new Point(e.x, e.y)); if (item == null) clickedTrack = null; else clickedTrack = (Track) hashByTableItem.get(item); int x = table.getColumn(0).getWidth() + table.getColumn(1).getWidth(); int width = table.getColumn(2).getWidth();
int colZeroWidth = table.getColumn(0).getWidth(); int colOneWidth = table.getColumn(1).getWidth(); int colTwoWidth = table.getColumn(2).getWidth();  int x = colZeroWidth + colOneWidth;   int distanceToColZero = colOneWidth + colTwoWidth + 80;
      public void mouseDown(MouseEvent e)       {        TableItem item = table.getItem(new Point(e.x, e.y));        if (item == null)          clickedTrack = null;        else          clickedTrack = (Track) hashByTableItem.get(item);        int x = table.getColumn(0).getWidth() +                table.getColumn(1).getWidth();        int width = table.getColumn(2).getWidth();          // If the user clicked on the rating column, then bring up the          // pop-up menu.          // NOTE: WIDTH OF RATING ICON IS HARD-CODED HERE!        if (e.x >= x && e.x < (x+width) && e.x < (x+80)) {          if (popupMenu != null && clickedTrack != null) {            menuSelectedTrack = clickedTrack;              // Select and scroll to the selected track.            select(selected, true);              // Put the menu 10 pixels below the mouse position so there is less risk of              // choosing "THIS SUX" accidentally.            popupMenu.popUp(menuSelectedTrack, table.toDisplay(e.x, e.y+10));              // Note: We will now receive a 'widgetSelected' event.  This will call              // select(selected, false) - this will ensure the correct track is              // highlighted, because menuSelectedTrack overrides the 'selected' track.          }        }      }