equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2012, 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 |
184 cb.setBounds(0, 0, w, h); |
184 cb.setBounds(0, 0, w, h); |
185 rb.setBounds(0, 0, w, h); |
185 rb.setBounds(0, 0, w, h); |
186 } |
186 } |
187 |
187 |
188 @Override |
188 @Override |
|
189 public Dimension getPreferredSize() { |
|
190 return getCurrentButton().getPreferredSize(); |
|
191 } |
|
192 |
|
193 @Override |
189 @Transient |
194 @Transient |
190 public Dimension getMinimumSize() { |
195 public Dimension getMinimumSize() { |
191 return getCurrentButton().getMinimumSize(); |
196 return getCurrentButton().getMinimumSize(); |
192 } |
197 } |
193 |
198 |