The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
i
 got this program and I am getting an error on main and can't figure out why. It's probably something simple but I can't figure it out.Â
Â
import java.awt.*;import java.awt.event.*;import javax.swing.JOptionPane;/////////////////////////////////////////////////////////////////////////////////////////Program Name:Justin Tamayo////Programer's Name:carCare////Program Description:Calculate Services provided to Customers of Quick Fast CarCare/////////////////////////////////////////////////////////////////////////////////////////public class carCare{private Frame mainFrame;private Label headerLabel;private Label statusLabel;private Panel controlPanel;private intTotal;private int Number1 ,Number2;private String string1 ,string2;public carCare(){prepareGUI();}public static void main(String[] args){carCareThemenu = new carCare();Themenu.showMenu();}private void prepareGUI(){mainFrame = new Frame("Quick Fast Car Care ");mainFrame.setSize(450,200);mainFrame.setLocationRelativeTo(null);mainFrame.setLayout(new GridLayout(3, 1));mainFrame.addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent windowEvent){System.exit(0);}});headerLabel = new Label();headerLabel.setAlignment(Label.CENTER);statusLabel = new Label();statusLabel.setAlignment(Label.CENTER);statusLabel.setSize(350,100);controlPanel = new Panel();controlPanel.setLayout(new FlowLayout());