Skip to main content

How to set Focus on Button in canvas

2 replies [Last post]
ajay_kumar
Offline
Joined: 2008-06-26
Points: 0

hi everybody
can u help me,i have designed a login button by drawRect().i want to put some event on this button is not clicking also.so can u suggest me some idea about this.
reply plz

Message was edited by: ajay_kumar

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Hi,

From your question it appears that you are still quite new to Java ME.

It is possible to create a button with a drawRect() and then capture the "pointer pressed" events - but that not the recommended way of implementing a button.

I would suggest you want to get started with the basics of MIDP programming before you attempt to implement something like this. Check out the "Getting Started" section of our wiki:

http://wiki.java.net/bin/view/Mobileandembedded/AppDev

Hope this helps,

-- Terrence

ajay_kumar
Offline
Joined: 2008-06-26
Points: 0

thank u very much yar.....