equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2018, 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 |
199 return new Dimension(fm.stringWidth(label) + 14, |
199 return new Dimension(fm.stringWidth(label) + 14, |
200 fm.getHeight() + 8); |
200 fm.getHeight() + 8); |
201 } |
201 } |
202 |
202 |
203 /** |
203 /** |
204 * DEPRECATED |
|
205 */ |
|
206 public Dimension minimumSize() { |
|
207 return getMinimumSize(); |
|
208 } |
|
209 /** |
|
210 * This method is called from Toolkit Thread and so it should not call any |
204 * This method is called from Toolkit Thread and so it should not call any |
211 * client code. |
205 * client code. |
212 */ |
206 */ |
213 @Override |
207 @Override |
214 void paintPeer(final Graphics g) { |
208 void paintPeer(final Graphics g) { |