public SpreadsheetKeyListener(Application app, MyTable table) { this.app = app; this.kernel = app.getKernel(); this.table = table; this.view = table.getView(); this.model = (DefaultTableModel) table.getModel(); this.editor = table.editor; }