may be javac bug "deprecated method"

P

Peter

import javax.swing.*;
import javax.swing.border.*;
import javax.swing.plaf.basic.*;

public class PComboBox_ComboPopup extends
javax.swing.plaf.basic.BasicComboPopup {
Border border1;
public PComboBox_ComboPopup(JComboBox comboBox) {
super(comboBox);
}


public void show() {
}

}

The jdk 1.4.2 said :
Note: PComboBox_ComboPopup.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

because i override the "publid void show()" method, but i have checked
the manual, the show method is not deprecated. Is it s bug of javac?

thanks
from Peter ([email protected])
 
V

VisionSet

The jdk 1.4.2 said :
Note: PComboBox_ComboPopup.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

because i override the "publid void show()" method, but i have checked
the manual, the show method is not deprecated. Is it s bug of javac?

Well it override show() in Component which it probably calls.
So no, no bug.
 
A

Andrew Thompson

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top