it says it cant find SevenContinentsFrame
please helppp
/**
* Write a description of class SevenContinents here.
*
* @author (your name)
* @version (a version number or a date)
*/
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JButton;
public class SevenContinents extends JFrame implements ActionListener
{
JButton button1 = new JButton("1");
JButton button2 = new JButton("2");
JButton button3 = new JButton("3");
JButton button4 = new JButton("4");
JButton button5 = new JButton("5");
JButton button6 = new JButton("6");
JButton button7 = new JButton("7");
Why are you posting this on a C++ forum? You do realize the code you have written is in Java?
If you want *any* chance to get help, click 'edit topic' at the top of this page and move this topic into the lounge. There is still no guarantee that I or rapidcoder will help, however.
This is a C++ forum, there are many Java forums out there.
Secondly, please use code tags (the <> sign under format when you are posting a thread).
And lastly, because I am a nice person, the solution to your problem is that SevenContinentsFrame goes out of scope in your other functions other than main(). Read this article, start to finish: http://www.java-made-easy.com/variable-scope.html