Author: mallon Date: 2012-08-07 15:49:13 +0200 (Tue, 07 Aug 2012) New Revision: 3571 Url: http://chorem.org/repositories/revision/lima/3571 Log: fixes #699 La touche tabulation fonctionne d?\195?\169sormais correctement en fin de tableau (Ajout d'une entr?\195?\169e ou d'une transaction). Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTable.java Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTable.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTable.java 2012-08-07 13:33:19 UTC (rev 3570) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTable.java 2012-08-07 13:49:13 UTC (rev 3571) @@ -166,25 +166,25 @@ FinancialTransactionTable table = FinancialTransactionTable.this; - @Override + /* @Override public void keyTyped(KeyEvent e) { if ( (getSelectedColumn() == 4 || getSelectedColumn() == 5) ) { editCellAt(getSelectedRow(), getSelectedColumn()); } - } + }*/ - @Override + /*@Override public void keyReleased(KeyEvent e) { if ( (getSelectedColumn() == 4 || getSelectedColumn() == 5) ) { editCellAt(getSelectedRow(), getSelectedColumn()); } - } + }*/ @Override public void keyPressed(KeyEvent e) { - if ( (getSelectedColumn() == 4 || getSelectedColumn() == 5) ) { + /*if ( (getSelectedColumn() == 4 || getSelectedColumn() == 5) ) { editCellAt(getSelectedRow(), getSelectedColumn()); - } + }*/ final FinancialTransactionViewHandler handler = getHandler(); @@ -252,6 +252,9 @@ * sinon rajoute une transaction */ if (e.getKeyChar() == KeyEvent.VK_TAB) { + if (log.isDebugEnabled()) { + log.debug("Key tab used"); + } int max_x = getColumnCount(); int max_y = getRowCount(); x_tab = getSelectedColumn();