Skip to content

Commit

Permalink
javadoc updated
Browse files Browse the repository at this point in the history
  • Loading branch information
prsadhuk committed Jan 19, 2024
1 parent 0e4df2a commit 1a7bc6e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/java.desktop/share/classes/javax/swing/JScrollBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,8 @@ public void stateChanged(ChangeEvent e) {
* Thus, it overrides {@code JComponent.setMinimumSize} contract
* that subsequent calls to getMinimumSize will return the
* same value as set in {@code JComponent.setMinimumSize}
*
* @param minimumSize the new minimum size of this component
*/
public void setMinimumSize(Dimension minimumSize) {
super.setMinimumSize(minimumSize);
Expand All @@ -772,6 +774,8 @@ public void setMinimumSize(Dimension minimumSize) {
* Thus, it overrides {@code JComponent.setMaximumSize} contract
* that subsequent calls to getMaximumSize will return the
* same value as set in {@code JComponent.setMaximumSize}
*
* @param maximumSize the desired maximum allowable size
*/
public void setMaximumSize(Dimension maximumSize) {
super.setMaximumSize(maximumSize);
Expand All @@ -780,6 +784,10 @@ public void setMaximumSize(Dimension maximumSize) {
/**
* The scrollbar is flexible along it's scrolling axis and
* rigid along the other axis.
*
* @return the value of the {@code minimumSize} property if set by user
* or if not set, minimum size derived from
* preferred size in one axis and fixed size in another axis
*/
public Dimension getMinimumSize() {
if (isMinimumSizeSet()) {
Expand All @@ -796,6 +804,10 @@ public Dimension getMinimumSize() {
/**
* The scrollbar is flexible along it's scrolling axis and
* rigid along the other axis.
*
* @return the value of the {@code maximumSize} property if set by user
* or if not set, maximum size derived from
* preferred size in one axis and fixed size in another axis
*/
public Dimension getMaximumSize() {
if (isMaximumSizeSet()) {
Expand Down

0 comments on commit 1a7bc6e

Please sign in to comment.