results in the error. more specifically it is highlighted on this part:
new ConvertWithGUI();
Now the basic function of this program is to convert from and to Celsius. It is simple i know but i do not know what this error is, and i am typing this exact from the book.
If anyone could help it will be appreciated! Thank you.
Solución
public class gui
{
....
}
The above 3 statements are not needed. The name of your source file should be ConvertwithGUI since that should be the only public class in the file. Keep your source files simple so that they only contain one public class.
Otros consejos
Your class ConvertWithGUI isn't static, so you need an instance of the containing class to construct it. Just
public static /*<-- Add this*/ class ConvertWithGUI extends GBFrame