Java JTable Row jtable$convertRowIndexToModel(JTable table, int index)

Here you can find the source of jtable$convertRowIndexToModel(JTable table, int index)

Description

jtablconvert Row Index To Model

License

Open Source License

Declaration

public static int jtable$convertRowIndexToModel(JTable table, int index) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.lang.reflect.Method;

import javax.swing.JTable;

public class Main {
    public static int jtable$convertRowIndexToModel(JTable table, int index) {
        try {//from w  w w  . j  a va 2  s .  com
            Method e = table.getClass().getMethod("convertRowIndexToModel", new Class[] { Integer.TYPE });
            return ((Integer) e.invoke(table, new Object[] { Integer.valueOf(index) })).intValue();
        } catch (Exception var3) {
            var3.printStackTrace();
            return index;
        }
    }
}

Related

  1. getTableRow(TableModel tableModel, int row)
  2. hasRows(JTable table)
  3. insertRow(final JTable table, final int index, Object... data)
  4. isFirstToLastRow(TableModelEvent e)
  5. isRowInsert(TableModelEvent e)
  6. makeIntoMoveRowUpButton(final JTable table, JButton button)
  7. packRows(JTable table, int start, int end, int margin)
  8. removeTableRows(DefaultTableModel model)
  9. rowToModelIndex(JTable table, int row)