Skip to content

Commit

Permalink
javadoc change
Browse files Browse the repository at this point in the history
  • Loading branch information
prsadhuk committed Jan 29, 2024
1 parent 10b670c commit 66a50bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions src/java.desktop/share/classes/javax/swing/JComponent.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2024, 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
Expand Down Expand Up @@ -1739,12 +1739,13 @@ public Dimension getPreferredSize() {

/**
* Sets the maximum size of this component to a constant
* value. Subsequent calls to <code>getMaximumSize</code> will always
* value. Subsequent calls to {@code getMaximumSize} will always
* return this value; the component's UI will not be asked
* to compute it.
* to compute it. Setting the maximum size to {@code null}
* restores the default behavior.
* <p>
* Subclasses may choose to override this by returning its own maximum size
* in its {@code getMaximumSize} method.
* Setting the maximum size to <code>null</code> restores the default behavior.
*
* @param maximumSize a <code>Dimension</code> containing the
* desired maximum allowable size
Expand Down Expand Up @@ -1782,12 +1783,13 @@ public Dimension getMaximumSize() {

/**
* Sets the minimum size of this component to a constant
* value. Subsequent calls to <code>getMinimumSize</code> will always
* value. Subsequent calls to {@code getMinimumSize} will always
* return this value; the component's UI will not be asked
* to compute it.
* to compute it. Setting the minimum size to {@code null}
* restores the default behavior.
* <p>
* Subclasses may choose to override this by returning its own minimum size
* in its {@code getMinimumSize} method.
* Setting the minimum size to <code>null</code> restores the default behavior.
*
* @param minimumSize the new minimum size of this component
* @see #getMinimumSize
Expand Down
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/javax/swing/JScrollBar.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2024, 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
Expand Down

0 comments on commit 66a50bc

Please sign in to comment.