}
private String createTabDelimitedSelectedRowsContent()
{
java.util.List<java.util.List<String>> formattedRowList = new ArrayList<java.util.List<String>>();
JXTable jxTable = (JXTable) getTableWidget().getTable();
java.util.List<String> headerList = new ArrayList<String>();
for (TableColumn tableColumn : jxTable.getColumns())
{
Object headerValue = tableColumn.getHeaderValue();
headerList.add(headerValue == null ? "" : headerValue.toString());
}
formattedRowList.add(headerList);
for (int rowIndex : jxTable.getSelectedRows())
{
java.util.List<String> columnList = new ArrayList<String>();
for (TableColumn tableColumn : jxTable.getColumns())
{
Object unformattedValue = jxTable.getModel().getValueAt(rowIndex,
tableColumn.getModelIndex());
int columnViewIndex = jxTable.convertColumnIndexToView(tableColumn.getModelIndex());
TableCellRenderer renderer = jxTable.getCellRenderer(rowIndex, columnViewIndex);
Component component = renderer.getTableCellRendererComponent(jxTable,
unformattedValue, false, false, rowIndex, columnViewIndex);
columnList.add(getFormattedValue(component));
}