aspose file tools*
The moose likes Beginning Java and the fly likes deprecated API [ wish to learn complete on it ] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "deprecated API [ wish to learn complete on it ]" Watch "deprecated API [ wish to learn complete on it ]" New topic
Author

deprecated API [ wish to learn complete on it ]

kaush de
Greenhorn

Joined: Feb 21, 2008
Posts: 6
Guys, I�m new in java� I�m learning from VDO tutorial that is bit old..
I created a file name Main.java


import java.awt.Frame;
import java.awt.Label;

public class Main extends Frame{
public static void main(String arg[]) {
new Main();
}
Main(){
Label label;
label=new Label("Howdy!");
add(label);
pack();
show();
}
}

Now when I compile it.. gives msg�...
Main.java uses or overrides a deprecated API
Recompile with Xlint epcrecation for details

Well my program runs fine� but can anybody tell me how to find out the list of other deprecated API in java & which other API takes its place.

I'm novice... but trying like anything thanks in advance.


one for all , all for one.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Go to the Java API documentation (for example, here), look up the class with the questionable method.

Here's it's "show()". Use "setVisible(true)" instead.


[Jess in Action][AskingGoodQuestions]
kaush de
Greenhorn

Joined: Feb 21, 2008
Posts: 6
thanks a lot

one i got too
http://java.sun.com/j2se/1.4.2/docs/guide/misc/deprecation/deprecation.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deprecated API [ wish to learn complete on it ]