P
Peter
Hi
Here is my code:
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.plaf.basic.*;
public class PComboBox_ComboPopup extends BasicComboPopup {
Border border1;
public PComboBox_ComboPopup(JComboBox comboBox) {
super(comboBox);
BasicComboPopup a=new BasicComboPopup(comboBox);
a.show();
}
public void show() {
}
}
compiled by:
C:\>javac PComboBox_ComboPopup.java
Note: PComboBox_ComboPopup.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
The compile warn me because i overrided a deprecated method (but i
have checked the manual, show is not a deprecated method in class
BasicComboPopup).
Why don't the compile warn me i called a deprecated method?? Is it a
bug?
i am using jdk 1.4.2
thanks
from Peter ([email protected])
Here is my code:
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.plaf.basic.*;
public class PComboBox_ComboPopup extends BasicComboPopup {
Border border1;
public PComboBox_ComboPopup(JComboBox comboBox) {
super(comboBox);
BasicComboPopup a=new BasicComboPopup(comboBox);
a.show();
}
public void show() {
}
}
compiled by:
C:\>javac PComboBox_ComboPopup.java
Note: PComboBox_ComboPopup.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
The compile warn me because i overrided a deprecated method (but i
have checked the manual, show is not a deprecated method in class
BasicComboPopup).
Why don't the compile warn me i called a deprecated method?? Is it a
bug?
i am using jdk 1.4.2
thanks
from Peter ([email protected])