< prev index next >
src/java.desktop/windows/classes/sun/awt/windows/WChoicePeer.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 58,68 ****
@Override
public native void select(int index);
@Override
public void add(String item, int index) {
! addItem(item, index);
}
@Override
public boolean shouldClearRectBeforePaint() {
return false;
--- 58,68 ----
@Override
public native void select(int index);
@Override
public void add(String item, int index) {
! addItems(new String[] {item}, index);
}
@Override
public boolean shouldClearRectBeforePaint() {
return false;
*** 71,86 ****
@Override
public native void removeAll();
@Override
public native void remove(int index);
- /**
- * DEPRECATED, but for now, called by add(String, int).
- */
- public void addItem(String item, int index) {
- addItems(new String[] {item}, index);
- }
public native void addItems(String[] items, int index);
@Override
public synchronized native void reshape(int x, int y, int width, int height);
--- 71,80 ----
< prev index next >