< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/LineView.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 159,168 **** --- 159,169 ---- } /** * Returns the location for the tab. */ + @SuppressWarnings("deprecation") protected float getPreTab(float x, int tabOffset) { Document d = getDocument(); View v = getViewAtPosition(tabOffset, null); if ((d instanceof StyledDocument) && v != null) { // Assume f is fixed point.
< prev index next >