< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java

Print this page

        

*** 2224,2234 **** visRect.y + visRect.height) { p.y = cellBounds.y - 1; index = list.locationToIndex(p); cellBounds = list.getCellBounds(index, index); } ! // if index isn't greater then lead // try to go to cell next after lead if (cellBounds.y <= leadRect.y) { p.y = leadRect.y + leadRect.height; index = list.locationToIndex(p); } --- 2224,2234 ---- visRect.y + visRect.height) { p.y = cellBounds.y - 1; index = list.locationToIndex(p); cellBounds = list.getCellBounds(index, index); } ! // if index isn't greater than lead // try to go to cell next after lead if (cellBounds.y <= leadRect.y) { p.y = leadRect.y + leadRect.height; index = list.locationToIndex(p); }
< prev index next >