src/solaris/classes/sun/awt/X11/ListHelper.java

Print this page

        

*** 259,269 **** int getItemHeight() { return fm.getHeight() + (2*TEXT_SPACE); } public int y2index(int y) { ! if (log.isLoggable(PlatformLogger.FINE)) { log.fine("y=" + y +", firstIdx=" + firstDisplayedIndex() +", itemHeight=" + getItemHeight() + ",item_margin=" + ITEM_MARGIN); } // See 6243382 for more information int newIdx = firstDisplayedIndex() + ((y - 2*ITEM_MARGIN) / (getItemHeight() + 2*ITEM_MARGIN)); --- 259,269 ---- int getItemHeight() { return fm.getHeight() + (2*TEXT_SPACE); } public int y2index(int y) { ! if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("y=" + y +", firstIdx=" + firstDisplayedIndex() +", itemHeight=" + getItemHeight() + ",item_margin=" + ITEM_MARGIN); } // See 6243382 for more information int newIdx = firstDisplayedIndex() + ((y - 2*ITEM_MARGIN) / (getItemHeight() + 2*ITEM_MARGIN));