Hello, is it possible to use an image as a selection. what i mean is that, if you can highlight on an image and it takes you to the next screen. If its possible pls could you show how to do that or any links will do.
Thanks.
Hello, is it possible to use an image as a selection. what i mean is that, if you can highlight on an image and it takes you to the next screen. If its possible pls could you show how to do that or any links will do.
Thanks.
Yes, it is possible.
Do you want to do it on Touch / or non-touch device.
Simple way will be to use Grid layout of LWUIT and place buttons with images on it, thou you can program it yourself using Custom item in J2me MIDP or going directly on canvas.
thanks,
~Amitabh
Hello,
Are you trying to draw the image as the selection of the menu items or so?
Yes that's quite possible and can be done in multiple ways, one is described by im2amit and another can be using the simple Canvas.You can follow like this,
1. load the immutable image from the resource
2. Then you can take a int variable say currentSelection
3. then you draw the string and as per the desired value of the currentSelection you use,like this
if(currentSelection is blablabla)
{
// draw the image
graphics.drawImage(imageSelection,x, y , anchor);
}
else
{
// do not draw the image
}
Please check that whether this can help you,
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
You can try to re-use this code from my canvas menu example on FN Wiki:
http://wiki.forum.nokia.com/index.ph...Menu_on_Canvas
Just change the String options array to an array of images, and instead of drawtString use drawImage in the paint method.
thanks,
~Amitabh
sorry for the late response.. thank you guys for your response
@im2amit, yes i would prefer it on a touch screen phone... but apparently i have no clue how to use Lwuit, but i hear its not hard at all and thanks for the link too.
Try to see LWUIT at https://lwuit.dev.java.net/
and go thu --https://lwuit.dev.java.net/tutorial/index.html
its simple to understand and easy to use.
thanks,
~Amitabh
hi all
i have problem when deploying lwuit program designed using netbeans
it works well in emulator but when i deploy it to my N73 mobile it said App not supported ?????
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,