hi all, i want to draw out a different shape depending on what key the user pressed, but how do i draw outside of the paint() method? for example, when the user presses 1 on the handphone(emulator), i draw out a rectangle. i tried to check for the key been pressed in paint(), but its like paint() is only been called when the MIDlet starts up, and i can only press a key after everything has been drawn, so nothing gets drawn out.
posted 11 years ago
stupid me i placed the repaint() in the wrong place haha got it working now