Author: jpepin Date: 2010-06-02 15:17:06 +0200 (Wed, 02 Jun 2010) New Revision: 2926 Url: http://chorem.org/repositories/revision/lima/2926 Log: Focus d'?\195?\169dition sur la bonne colonne apr?\195?\168s ajout transaction/entr?\195?\169e Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionViewHandler.java Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionViewHandler.java 2010-06-02 10:54:31 UTC (rev 2925) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionViewHandler.java 2010-06-02 13:17:06 UTC (rev 2926) @@ -67,6 +67,9 @@ ListSelectionModel selectionModel = table.getSelectionModel(); selectionModel.setSelectionInterval(numberRow-1, numberRow-1); + //focus on first column + table.changeSelection(numberRow-1, 0, false, false); + table.requestFocusInWindow(); } catch (LimaException ex) { if (log.isErrorEnabled()) { log.error("Can't add financialtransaction", ex); @@ -94,6 +97,9 @@ ListSelectionModel selectionModel = table.getSelectionModel(); selectionModel.setSelectionInterval(indexSelectedRow+1, indexSelectedRow+1); + //focus on second column + table.changeSelection(indexSelectedRow+1, 1, false, false); + table.requestFocusInWindow(); } catch (LimaException ex){ if (log.isErrorEnabled()) { log.error("Can't add emptyentry", ex);