I have tried to switch from a canvas to a midlet but it's not working can anyone help? I am using netbeans 6.91 and i want to switch from this canvas to a list named utilities in midlet CSC14
H
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.Graphics;
import com.nokia.mid.ui.*;
import javax.microedition.lcdui.Display;
public class TorchCanvas extends Canvas{
public CSC14 midlet;
/** Creates a new instance of TorchCanvas */
public TorchCanvas() {
// Set fullscreen
this.setFullScreenMode( true );
}
/** Override paint method */
public void paint(Graphics g){
/** Paint the background white */
DeviceControl.setLights(0, 100);
g.setColor( 255, 255, 255 );
g.fillRect( 0, 0, this.getWidth(), this.getHeight());
}
protected void keyPressed(int keyCode) {
if(keyCode != DOWN){
midlet.SwitchDisplayable(null, midlet.getUtilities())
}
}
}
}