Problem Calling Classes
hi all,
I am trying to follow the DiveLog example from the java sun site and i facing an error saying: compile error can't resolve symbole and points at the class name. here is my code:
package divelog;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/**
*
* @author Administrator
*/
public class DiveLog {
private JFrame dlframe; //Not assigned yet.
private JTabbedPane tabbedPane; //Not assigned yet.
/** Creates a new instance of Class */
public DiveLog() {
// Create a frame object to add the
// application GUI components to.
dlframe = new JFrame("A Java Technology Dive Log");
// Closes from title bar
//and from menu
dlframe.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);
}
});
// Tabbed pane with panels for Jcomponents
// Instantiate JTabbedPane with keyword new
tabbedPane = new JTabbedPane(SwingConstants.LEFT);
// Calls method to set color
tabbedPane.setBackground(Color.blue);
tabbedPane.setForeground(Color.white);
//A method that adds individual tabs to the
//tabbedpane object.
populateTabbedPane();
//Calls the method that builds the menu
buildMenu();
dlframe.getContentPane().add(tabbedPane);
dlframe.pack();
dlframe.setSize(765, 690);
dlframe.setBackground(Color.white);
dlframe.setVisible(true);
}// Ends constructor
private void populateTabbedPane()
{
// Create tabs with title
tabbedPane.addTab(
"Welcome",
null,
new Welcome(),
"Welcome to the Dive Log");
tabbedPane.addTab(
"Diver Data",
null,
new Diver(),
"Click here to enter diver data");
tabbedPane.addTab(
"Log Dives",
null,
new Dives(),
"Click here to enter dives");
tabbedPane.addTab(
"Statistics",
null,
new Statistics(),
"Click here to calculate" +
" dive statistics");
tabbedPane.addTab(
"Favorite Web Site",
null, new WebSite(),
"Click here to see a web site");
tabbedPane.addTab(
"Resources",
null,
new Resources(),
"Click here to see a list " +
"of resources");
}//Ends populateTabbedPane method
} //end of class
in the private void populateTabbedPane method i am calling 6 classes that basically do nothing (yet) but my class can't recognize them. here is the code for one of the classes that can't be recognized:
package divelog;
/*
* Diver.java
*
* Created on October 31, 2004, 2:20 PM
*/
import javax.swing.*;
//import for layout manager
import java.awt.*;
/**
*
* @author Administrator
*/
public class Diver extends JPanel {
/** Creates a new instance of Diver */
public Diver() {
}
}
i have all of the classes in the same folder (divelog) and same spelling but keep getting a compile error. Anyone knows?
thanks a lot

