Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help me...!!!

 
Siddheh Desai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on JDBC project. I am implimenting Frame Buttons. I used following code got error. I dont understanding it.
I Request you to help me.

import java.awt.*;

class Buttontest extends Frame
{

Button yes= new Button("Yes");
Button no= new Button("no");
Button yn= new Button("YN");

public Buttontest(String title)
{
super(title);
setLayout(new FlowLayout());
add(yes);
add(no);
add(yn);
}
public static void main(String args[])
{
Buttontest b=new Buttontest("j");
b.setSize(500,500);
b.show();
}
}


Error is:

C:\Program Files\Java\jdk1.5.0\bin>javac ButtonTest.java
Note: ButtonTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint eprecation for details.
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does it tell name of deprecated API on any line number........?

even you have a JDBC project but this seems to be a java compilation issues and suited for java froum

Shailesh
[ June 24, 2005: Message edited by: Shailesh Chandra ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64822
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As there is no JDBC dimension to this question, moved to Java in General (beginner).

Siddeh, you might also want to read this.
[ June 24, 2005: Message edited by: Bear Bibeault ]
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic