I am beginning in java (I\'m learning in microedition) and I got this error: \"int cannot be dereferenced\" in the following class:
class DCanvas extends Can
You are calling the setColor and fillRect methods on g, which is a parameter of type int. Since int is not a reference type, you cannot call methods on it.
setColor
fillRect
g
int
You probably want to add a Graphics parameter to the function.
Graphics