Possible Duplicate:
The constructor Date(…) is deprecated. What does it mean? (Java)
I’m getting this message when I compile my code.
H:\Project\MyGui.java uses or overrides a deprecated API.
Recompile
with -Xlint:deprecation for details.
I’ve never seen it before, but in no way does it stop the programing running properly.
Could someone please explain it and tell me how to rectify it?
So you are using or overriding a method that has been marked as deprecated. If you want to know exactly which one, you’ll have to add
-Xlint:deprecationto yourjavacarguments.A deprecated API will usually have a recommended alternative in the Javadoc associated with it, so it’ll tell you what to use instead of it.