Class JTableUtils


  • public final class JTableUtils
    extends java.lang.Object
    Useful utilities for JTable.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isCellVisible​(javax.swing.JTable table, int rowIndex, int colIndex)
      Is cell visible on screen? Assumes table is contained in a JScrollPane.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isCellVisible

        public static boolean isCellVisible​(javax.swing.JTable table,
                                            int rowIndex,
                                            int colIndex)
        Is cell visible on screen? Assumes table is contained in a JScrollPane. Returns true iff the cell (rowIndex, colIndex) is completely visible within the viewport.
        Parameters:
        table - table of interest
        rowIndex - row of interest
        colIndex - column of interest
        Returns:
        true if cell is visible; false otherwise