rockstar jax
February 25th, 2011, 12:28
i have a error while i was trying to add a control panel heres the error
.
\ricky\Engine.java:169: cannot find symbol
symbol : variable JFrame
location: class ricky.Engine
Startupp.setDefaultCloseOperation(JFrame.EXIT_ON_C LOSE); //How i
t closes
^
1 error
Press any key to continue . . .
the code is
}
/**
GUI
*/
public void Startup() {
Gui Startupp = new Gui();
Startupp.setDefaultCloseOperation(JFrame.EXIT_ON_C LOSE); //How it closes
Startupp.setSize(450, 75); //The size, adjust the numbers to make bigger/smaller
Startupp.setVisible(true); //makes it visible.
Startupp.setResizable(false);
}
/**
and belongs in engine.java
.
\ricky\Engine.java:169: cannot find symbol
symbol : variable JFrame
location: class ricky.Engine
Startupp.setDefaultCloseOperation(JFrame.EXIT_ON_C LOSE); //How i
t closes
^
1 error
Press any key to continue . . .
the code is
}
/**
GUI
*/
public void Startup() {
Gui Startupp = new Gui();
Startupp.setDefaultCloseOperation(JFrame.EXIT_ON_C LOSE); //How it closes
Startupp.setSize(450, 75); //The size, adjust the numbers to make bigger/smaller
Startupp.setVisible(true); //makes it visible.
Startupp.setResizable(false);
}
/**
and belongs in engine.java