Java JTable Column getColumnData(final JTable table, final int iSelectedRow)

Here you can find the source of getColumnData(final JTable table, final int iSelectedRow)

Description

get Column Data

License

Open Source License

Declaration

private static StringBuffer getColumnData(final JTable table, final int iSelectedRow) 

Method Source Code

//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;
    }
}

Related

  1. findColumn(TableModel m, String columnName)
  2. findColumn(TableModel model, String name)
  3. fitColumns(JTable table)
  4. FitTableColumns(JTable myTable)
  5. formatStringListToTable(List columnNames, List rows)
  6. getColumnIndex(JTable table, String columnTitle)
  7. getColumnIndexFromName(TableModel tableModel, String columnToRemove)
  8. getColumnNames(TableModel tableModel)
  9. getColumnOrder(final JTable table)