ukacgla_4inputKMap
Class Ex06_Frame.KMapTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--ukacgla_KMap.KMap_Frame.MyTableModel
              |
              +--ukacgla_4inputKMap.Ex06_Frame.KMapTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
Ex06_Frame

protected class Ex06_Frame.KMapTableModel
extends KMap_Frame.MyTableModel

See Also:
Serialized Form

Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
Ex06_Frame.KMapTableModel(java.lang.String[] c)
          An array of random numbers is generated using the Ex06_Random object.
 
Method Summary
 void proofReadTable()
          Ensures that the table will not be made exclusively of ones or zeros Check each cell in turn.
 
Methods inherited from class ukacgla_KMap.KMap_Frame.MyTableModel
getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ex06_Frame.KMapTableModel

public Ex06_Frame.KMapTableModel(java.lang.String[] c)
An array of random numbers is generated using the Ex06_Random object. This array is used to fill the 2D table model with 0's or 1's.
Method Detail

proofReadTable

public void proofReadTable()
Ensures that the table will not be made exclusively of ones or zeros Check each cell in turn. Increment counter for each 0 or 1 found. Use no of rows-1 to avoid including the last row of titles, and no of cols-1 to avoid the last column of titles.
Overrides:
proofReadTable in class KMap_Frame.MyTableModel