jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableUI.java
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 28236 610561ed1847
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
   342                 leadRow = maxY;
   342                 leadRow = maxY;
   343                 leadColumn = maxX + 1;
   343                 leadColumn = maxX + 1;
   344             }
   344             }
   345 
   345 
   346             // In cases where the lead is not within the search range,
   346             // In cases where the lead is not within the search range,
   347             // we need to bring it within one cell for the the search
   347             // we need to bring it within one cell for the search
   348             // to work properly. Check these here.
   348             // to work properly. Check these here.
   349             leadRow = Math.min(Math.max(leadRow, minY - 1), maxY + 1);
   349             leadRow = Math.min(Math.max(leadRow, minY - 1), maxY + 1);
   350             leadColumn = Math.min(Math.max(leadColumn, minX - 1), maxX + 1);
   350             leadColumn = Math.min(Math.max(leadColumn, minX - 1), maxX + 1);
   351 
   351 
   352             // find the next position, possibly looping until it is selected
   352             // find the next position, possibly looping until it is selected