equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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 |
36 /** |
36 /** |
37 * A better GridLayout class |
37 * A better GridLayout class |
38 * |
38 * |
39 * @author Steve Wilson |
39 * @author Steve Wilson |
40 */ |
40 */ |
|
41 @SuppressWarnings("serial") // Same-version serialization only |
41 class SmartGridLayout implements LayoutManager, Serializable { |
42 class SmartGridLayout implements LayoutManager, Serializable { |
42 |
43 |
43 int rows = 2; |
44 int rows = 2; |
44 int columns = 2; |
45 int columns = 2; |
45 int xGap = 2; |
46 int xGap = 2; |