6051N/A * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 6051N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6051N/A * This code is free software; you can redistribute it and/or modify it 6051N/A * under the terms of the GNU General Public License version 2 only, as 6051N/A * published by the Free Software Foundation. 6051N/A * This code is distributed in the hope that it will be useful, but WITHOUT 6051N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 6051N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 6051N/A * version 2 for more details (a copy is included in the LICENSE file that 6051N/A * You should have received a copy of the GNU General Public License version 6051N/A * 2 along with this work; if not, write to the Free Software Foundation, 6051N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 6051N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 6051N/A * or visit www.oracle.com if you need additional information or have any 6051N/A * @summary Tests GridBagLayout encoding 6051N/A// for (int i = 0; i < size; i++) { 6051N/A// validator.validate(NAME.get(a.get(i)), NAME.get(b.get(i))); 6051N/A// validator.validate(COMP.get(a.get(i)), COMP.get(b.get(i))); 6051N/A// for (String name : names) { 6051N/A// validator.validate(getConstraints(before, name), getConstraints(after, name)); 6051N/A private static GridBagConstraints getConstraints(GridBagLayout layout, String id) { 6051N/A return (layout == null) ? null : ((MyGridBagLayout) layout).getConstraints(id);