@Override
    protected @Nullable Transferable createTransferable(JComponent c) {
      JTable table = (JTable)c;

      int[] selectedRows = table.getSelectedRows();
      if (selectedRows == null || selectedRows.length == 0) {
        return null;
      }

      String htmlText = buildHtmlText(table, selectedRows);
      String plainText = buildPlainText(table, selectedRows);

      return new TextTransferable(htmlText, plainText);
    }
@Override
    protected @Nullable Transferable createTransferable(JComponent c)