Adding customitem in canvas in J2ME?

Adding customitem in canvas in J2ME?

In J2ME how should we add a customitem inside the canvas.Because i need to perform key event handling for customitem.The key event handling is allowed in canvas not in form.So i try to use canvas instead of form.

View Answers

November 4, 2010 at 3:37 PM

You can handle the pressed key event by implementing the keyPressed method within the CustomItem, and just use a Form and CustomItems. If this won't work for you because of some special key events (like happens to me), then I don't have an straight answer... yet.

But AFAIK, you can't "add" something to a canvas, instead, you can keep references of what you want the Canvas to show, and just print it on the paint method.


November 4, 2010 at 4:10 PM

Thanks for ur kind information


September 24, 2013 at 10:58 AM

How to add canvas in custom Item... Please Suggest me...???









Related Tutorials/Questions & Answers:
Adding customitem in canvas in J2ME?
j2mea - Java Beginners
Advertisements
Checking the CustomItem in j2me support traversal or not?
Canvas placing problem
ModuleNotFoundError: No module named 'canvas'
ModuleNotFoundError: No module named 'ascii-canvas'
ModuleNotFoundError: No module named 'canvas-api'
ModuleNotFoundError: No module named 'canvas-science'
ModuleNotFoundError: No module named 'dash-canvas'
ModuleNotFoundError: No module named 'base-canvas'
ModuleNotFoundError: No module named 'flask-canvas'
Adding an employee
adding a dialogue
adding loop
Canvas won't draw on composite (SWT)
How to handle traversing in CustomItem of J2ME in a mobile phone which does not support traversing?
Canvas Layout Container
ModuleNotFoundError: No module named 'arithmos-canvas-core'
ModuleNotFoundError: No module named 'canvas-api-caller'
ModuleNotFoundError: No module named 'canvas-api-client'
ModuleNotFoundError: No module named 'canvas-api-client'
ModuleNotFoundError: No module named 'Oasys-Canvas-Core'
ModuleNotFoundError: No module named 'optimizely_canvas_sdk'
ModuleNotFoundError: No module named 'orange-canvas-core-ml'
ModuleNotFoundError: No module named 'py_canvas_api'
ModuleNotFoundError: No module named 'UW-Canvas-Users-LTI'
ModuleNotFoundError: No module named 'UW-RestClients-Canvas'
ModuleNotFoundError: No module named 'arithmos-canvas-core'
ModuleNotFoundError: No module named 'canvas-api-client'
ModuleNotFoundError: No module named 'canvas-data-sdk'
ModuleNotFoundError: No module named 'Canvas-Syncer-master'
ModuleNotFoundError: No module named 'django-canvas-api-token'
ModuleNotFoundError: No module named 'js.javascript_canvas_to_blob'
ModuleNotFoundError: No module named 'canvas-api-caller'
ModuleNotFoundError: No module named 'canvas-data-sdk'
ModuleNotFoundError: No module named 'orange-canvas-core'
ModuleNotFoundError: No module named 'py_canvas_api'
ModuleNotFoundError: No module named 'canvas-api-caller'
ModuleNotFoundError: No module named 'canvas-lms-api'
ModuleNotFoundError: No module named 'Canvas-Syncer-master-Salutin'
Image Icon Using Canvas Example
Simple Line Canvas Example
J2ME Canvas Repaint
Adding two numbers
javascript adding a value to an array
adding view to viewcontroller
adding groups in contacts
Adding photo to iPhone simulator
adding buttons - Swing AWT
adding buttons - Swing AWT

Ads