return scrollPane;
}
private JPopupMenu buildContextMenu(final GroupTable properties) {
final SingleTagFieldModel tagFieldModel = (SingleTagFieldModel) properties.getModel();
final List<Integer> selectedRows = new LinkedList<Integer>();
if (properties.getSelectedRowCount() > 0) {
for (int row : properties.getSelectedRows()) {
selectedRows.add(row);
}
}
ImageIcon emptyIcon = new ImageIcon(new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB));
final JPopupMenu menu = new JPopupMenu();
if (tagFieldModel.isMultiTrackEditMode()) {
if (!selectedRows.isEmpty()) {
final SingleTagFieldModel editTagFieldModel = new SingleTagFieldModel(tagFieldModel.getTrackInfoItem(),
tagFieldModel.getTrackInfoItem().getTracks().get(selectedRows.get(0)));
JMenuItem menuItemEdit = new JMenuItem("Edit");
menuItemEdit.setIcon(emptyIcon);
menu.add(menuItemEdit).addActionListener(new ActionListener() {