Skip to main content

How to set Focus on Button in canvas

2 replies [Last post]
Joined: 2008-06-26

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 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.
Joined: 2004-03-04


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:

Hope this helps,

-- Terrence

Joined: 2008-06-26

thank u very much yar.....