Here you can find the source of firstRowIsVoid(TableModel model)
private static boolean firstRowIsVoid(TableModel model)
//package com.java2s; //License from project: Open Source License import javax.swing.table.TableModel; public class Main { private static boolean firstRowIsVoid(TableModel model) { boolean isVoid = true; for (int colIndex = 0; colIndex < model.getColumnCount(); colIndex++) { if (model.getValueAt(0, colIndex) == null) { isVoid = true;/*from ww w. j av a 2s . c om*/ } else { isVoid = false; break; } } return isVoid; } }