src/share/classes/java/awt/Scrollbar.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1995, 2013, 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) 1995, 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
*** 654,663 ****
--- 654,666 ----
public int getVisibleAmount() {
return getVisible();
}
/**
+ * Returns the visible amount of this scroll bar.
+ *
+ * @return the visible amount of this scroll bar
* @deprecated As of JDK version 1.1,
* replaced by <code>getVisibleAmount()</code>.
*/
@Deprecated
public int getVisible() {
*** 727,736 ****
--- 730,743 ----
public void setUnitIncrement(int v) {
setLineIncrement(v);
}
/**
+ * Sets the unit increment for this scroll bar.
+ *
+ * @param v the increment value
+ *
* @deprecated As of JDK version 1.1,
* replaced by <code>setUnitIncrement(int)</code>.
*/
@Deprecated
public synchronized void setLineIncrement(int v) {
*** 766,775 ****
--- 773,785 ----
public int getUnitIncrement() {
return getLineIncrement();
}
/**
+ * Returns the unit increment for this scrollbar.
+ *
+ * @return the unit increment for this scrollbar
* @deprecated As of JDK version 1.1,
* replaced by <code>getUnitIncrement()</code>.
*/
@Deprecated
public int getLineIncrement() {
*** 795,804 ****
--- 805,817 ----
public void setBlockIncrement(int v) {
setPageIncrement(v);
}
/**
+ * Sets the block increment for this scroll bar.
+ *
+ * @param v the block increment
* @deprecated As of JDK version 1.1,
* replaced by <code>setBlockIncrement()</code>.
*/
@Deprecated
public synchronized void setPageIncrement(int v) {
*** 831,840 ****
--- 844,857 ----
public int getBlockIncrement() {
return getPageIncrement();
}
/**
+ * Returns the block increment of this scroll bar.
+ *
+ * @return the block increment of this scroll bar
+ *
* @deprecated As of JDK version 1.1,
* replaced by <code>getBlockIncrement()</code>.
*/
@Deprecated
public int getPageIncrement() {