ukacgla_3inputKMap
Class Ex05_Frame.KMapTableModel

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

protected class Ex05_Frame.KMapTableModel
extends KMap_Frame.MyTableModel

See Also:
Serialized Form

Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
Ex05_Frame.KMapTableModel(java.lang.String[] c)
          An array of random numbers is generated using the Ex05_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

Ex05_Frame.KMapTableModel

public Ex05_Frame.KMapTableModel(java.lang.String[] c)
An array of random numbers is generated using the Ex05_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.
Overrides:
proofReadTable in class KMap_Frame.MyTableModel