jdk/src/share/classes/javax/swing/LayoutComparator.java
changeset 23697 e556a715949f
parent 5506 202f599c92aa
equal deleted inserted replaced
23696:7deff68428ef 23697:e556a715949f
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    37  * position. Code adapted from original javax.swing.DefaultFocusManager
    37  * position. Code adapted from original javax.swing.DefaultFocusManager
    38  * implementation.
    38  * implementation.
    39  *
    39  *
    40  * @author David Mendenhall
    40  * @author David Mendenhall
    41  */
    41  */
       
    42 @SuppressWarnings("serial") // JDK-implementation class
    42 final class LayoutComparator implements Comparator<Component>, java.io.Serializable {
    43 final class LayoutComparator implements Comparator<Component>, java.io.Serializable {
    43 
    44 
    44     private static final int ROW_TOLERANCE = 10;
    45     private static final int ROW_TOLERANCE = 10;
    45 
    46 
    46     private boolean horizontal = true;
    47     private boolean horizontal = true;