spelling: container

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2024-10-22 08:56:56 -04:00
committed by Jindra Petřík
parent 8f998cb659
commit db9d1c4be6

View File

@@ -107,7 +107,7 @@ public class WrapLayout extends FlowLayout {
*/
private Dimension layoutSize(Container target, boolean preferred) {
synchronized (target.getTreeLock()) {
// Each row must fit with the width allocated to the containter.
// Each row must fit with the width allocated to the container.
// When the container width = 0, the preferred width of the container
// has not yet been calculated so lets ask for the maximum.
@@ -160,7 +160,7 @@ public class WrapLayout extends FlowLayout {
// When using a scroll pane or the DecoratedLookAndFeel we need to
// make sure the preferred size is less than the size of the
// target containter so shrinking the container size works
// target container so shrinking the container size works
// correctly. Removing the horizontal gap is an easy way to do this.
Container scrollPane = SwingUtilities.getAncestorOfClass(JScrollPane.class, target);