equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 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 |
497 unfurledChoice.trackMouse(e); |
497 unfurledChoice.trackMouse(e); |
498 } |
498 } |
499 } |
499 } |
500 |
500 |
501 // Stolen from TinyChoicePeer |
501 // Stolen from TinyChoicePeer |
|
502 @SuppressWarnings("deprecation") |
502 public Dimension getMinimumSize() { |
503 public Dimension getMinimumSize() { |
503 // TODO: move this impl into ListHelper? |
504 // TODO: move this impl into ListHelper? |
504 FontMetrics fm = getFontMetrics(target.getFont()); |
505 FontMetrics fm = getFontMetrics(target.getFont()); |
505 Choice c = (Choice)target; |
506 Choice c = (Choice)target; |
506 int w = 0; |
507 int w = 0; |