I am trying to compile my applet and keep getting the following error. It keeps telling me that it found a Variable String type but I am only defining type int. My code is below. Can anyonejust point me in the right direction please. Thanks!
[Edit: put code between [code] and [/code] UBB tags.
In lines 7 & 8 you have defined farenheitInput and celsiusInput as TextField. According to the API, "A TextField object is a text component that allows for the editing of a single line of text."
For your first error at line 43, you are using the getText() method to get the data from the farenheitInput field. According to the API (and as the name suggests), this method "Returns the text that is presented by this text component. By default, this is an empty string."
So the error message is correct: it found that you are getting text from the TextField and attempting to assign this text to an integer.
What you need to do in this case is find a method that will convert a String to an int. I would recommend looking at the Integer class, and seeing if there is a method that can parse the String for you.
Does this help you determine what the likely cause of the second error is?