Hi,
I am having the following problem.
From class1(which extends Canvas) depending on the key pressed,
I change the display and try to change the font colour(in the new display).
The problem is that when the repaint has no effect and only when I exit keyPressed function I see the final colour change for image created by paint for class2
public void keyPressed(int keyCode)
{
if(keyCode == Canvas.KEY_POUND)
{
Display.getDisplay(this).setCurrent(class2_obj);//class2 extends canvas
repaint();//Should call class2 paint()
.....
.....
repaint();//Should call class2 paint()
}
}
I am having the following problem.
From class1(which extends Canvas) depending on the key pressed,
I change the display and try to change the font colour(in the new display).
The problem is that when the repaint has no effect and only when I exit keyPressed function I see the final colour change for image created by paint for class2
public void keyPressed(int keyCode)
{
if(keyCode == Canvas.KEY_POUND)
{
Display.getDisplay(this).setCurrent(class2_obj);//class2 extends canvas
repaint();//Should call class2 paint()
.....
.....
repaint();//Should call class2 paint()
}
}