Need compiling help with JCreator
Thanks everyone.
I've now been using JCreator for a few hours now and love it, so far! I have not checked out JS++ yet, but I will.
I totally hate JBuilder from Borland, and Forte for Java (or Sun ONE) from SUN!
Can some JCreator users please help me. With the (30-trial Pro version) JCreator I am trying to compile a simple program which looks like this:
import javax.swing.JOptionPane;
public class Hw6 {
public static void main(String args[]) {
//declare variables
String instructions;
String milesinput, gallonsinput;
int miles, gallons;
int milestotal = 0;
double mpgaverage, mpgeach;
String mpgstring;
int n; //same as below but an int data
String ninput; //number of fillups or tankfills
String finaloutput = "";
//Instructions for program
instructions = "Dear user: You will input the number of tankfulls you filled your automobile up with gasoline, the number of gallons filled in each fillup, and the number of miles driven for each fillup. Then, the Resuls box at the end will display your average MPG (miles per gallon).\n\nClick OK to continue.";
//Introduce user to program with Message Dialog box
JOptionPane.showMessageDialog( null, "Welcome to the MileageTracker", "MileageTracker", INFORMATION_MESSAGE );
} //end method main
} //end class Hw6
...and I get this error:
--------------------Configuration: j2sdk1.4.1_01 <Default>--------------------
C:\Program Files\Xinox Software\JCreator Pro\MyProjects\Hw6\Hw6.java:59: cannot resolve symbol
symbol : variable INFORMATION_MESSAGE
location: class Hw6
JOptionPane.showMessageDialog( null, "Welcome to the MileageTracker", "MileageTracker", INFORMATION_MESSAGE );
^
1 error
Process completed.
I don't understand what's the problem?
__________________
Mr. H
Programmer-at-large.
"Programming is like sex. One mistake and you have to support it for the rest of your life."
Last edited by megahertzman; 12-10-2002 at 05:53 AM..
|