equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 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 |
676 Rectangle r = unfurledChoice.placeOnScreen(); |
676 Rectangle r = unfurledChoice.placeOnScreen(); |
677 unfurledChoice.reshape(r.x, r.y, r.width, r.height); |
677 unfurledChoice.reshape(r.x, r.y, r.width, r.height); |
678 repaint(); |
678 repaint(); |
679 } |
679 } |
680 |
680 |
681 /** |
|
682 * DEPRECATED: Replaced by add(String, int). |
|
683 */ |
|
684 public void addItem(String item, int index) { |
|
685 add(item, index); |
|
686 } |
|
687 |
|
688 public void setFont(Font font) { |
681 public void setFont(Font font) { |
689 super.setFont(font); |
682 super.setFont(font); |
690 helper.setFont(this.font); |
683 helper.setFont(this.font); |
691 } |
684 } |
692 |
685 |