911 I NEED HELP ASAP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
been trying to write a simple Java GUI assignment for almost a week nw and am stock i ve 2 submit tomorrow my friend jus introduced me 2 dis site pls help this is d code
mport java.awt.*;
import java.awt.event.*;
class ButtonTest extends Frame
{
Button btnCake= new Button("Cake");
Button btnChocs= new Button("Chocs");
Button btnBurger= new Button("Burger");
public ButtonTest (String title)
{
super(title);
setLayout(new FlowLayout());
add(btnCake);
add(btnChocs);
add(btnBurger);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent go)
{
setVisible(false);
System.exit(0);
}
});
}
public static void main(String args[])
{
ButtonTest yinka= new ButtonTest("The 3 little buttons");
yinka.setSize(500,500);
yinka.show();
}
}
but it keeps saying ButtonTest.java uses or overrides a depreciated API
when i try to compile what am i doing wrong

