Here you can find the source of getColumnData(final JTable table, final int iSelectedRow)
private static StringBuffer getColumnData(final JTable table, final int iSelectedRow)
//package com.java2s; //it under the terms of the GNU Affero General Public License as published by import javax.swing.JTable; public class Main { private static StringBuffer getColumnData(final JTable table, final int iSelectedRow) { final int iColumnCount = table.getColumnCount(); final StringBuffer sb = new StringBuffer(); for (int iColumn = 0; iColumn < iColumnCount; iColumn++) { sb.append(table.getValueAt(iSelectedRow, iColumn)); sb.append("\t"); }/*from w w w. ja v a2s.c om*/ return sb; } }