< prev index next >

src/java.desktop/share/classes/javax/swing/text/WrappedPlainView.java

Print this page

        

*** 464,474 **** * @return the tab stop, measured in points &gt;= 0 */ public float nextTabStop(float x, int tabOffset) { if (tabSize == 0) return x; ! float ntabs = (x - tabBase) / tabSize; return tabBase + ((ntabs + 1) * tabSize); } // --- View methods ------------------------------------- --- 464,474 ---- * @return the tab stop, measured in points &gt;= 0 */ public float nextTabStop(float x, int tabOffset) { if (tabSize == 0) return x; ! int ntabs = (int) ((x - tabBase) / tabSize); return tabBase + ((ntabs + 1) * tabSize); } // --- View methods -------------------------------------
< prev index next >