This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deprecated API [ wish to learn complete on it ]

 
kaush de
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
kaush de
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic