All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.objogate.wl.swing.driver.table.Cell Maven / Gradle / Ivy

The newest version!
/**
 * Identifies a cell in a Table based on row and column
 */
package com.objogate.wl.swing.driver.table;

import javax.swing.JTable;

public class Cell implements Location {
    public final int row;
    public final int col;

    public Cell(int row, int col) {
      this.row = row;
      this.col = col;
    }
    public Object valueFrom(JTable table) { return table.getValueAt(row, col); }
    public Cell asCellIn(JTable unused) { return this; }

    @Override public String toString() {
        return "r" + row + " x " + "c" + col;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy