|
From: Harry E. <har...@us...> - 2006-10-04 01:42:32
|
Update of /cvsroot/synclast/client/src/com/synclast/ui In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv836 Modified Files: Container.java Log Message: And now replace works as well. Fiddling with the focussed pointer is such a pain. Perhaps this should be an object reference instead? But then we would have to make sure to free it, so that we didn't cause a memory leak. Hmmm..... Index: Container.java =================================================================== RCS file: /cvsroot/synclast/client/src/com/synclast/ui/Container.java,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** Container.java 3 Oct 2006 18:37:30 -0000 1.41 --- Container.java 3 Oct 2006 18:55:56 -0000 1.42 *************** *** 303,306 **** --- 303,309 ---- if (pos != -1) { widgets.insertElementAt(widget, pos); + if(focused >= pos) { + focused++; + } remove(old); } |