The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » LWUIT

Thread: Touchscreen, how to get started

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 5 - Last Post: Aug 14, 2008 4:16 AM by: joergjahnke
Ivanhoe Abrahams
Touchscreen, how to get started
Posted: Jul 30, 2008 7:31 AM
  Click to reply to this thread Reply

Hi

This may seem like a real stupid question but I would like to know how to
make a LWUIT application touchscreen ready WITHOUT having access to a
touchscreen capable device.
I would imagine that this can be tested using the emulator and mouse
pointer, but I am not sure how to get started.

OR does one have to have access to a Touchscreen capable device to test
this?

Thanx in advance

ICA
[att1.html]


Shai Almog
Re: Touchscreen, how to get started
Posted: Jul 30, 2008 7:50 AM   in response to: Ivanhoe Abrahams
  Click to reply to this thread Reply

Hi,
you can modify every device within the WTK/Sprint Toolkit to accept
touch events by flipping a switch within the device properties file.
If I am not mistaken the latest version of the Sprint Toolkit
includes a Skin for Instinct.

Thanks.

> Hi
>
> This may seem like a real stupid question but I would like to know
> how to make a LWUIT application touchscreen ready WITHOUT having
> access to a touchscreen capable device.
> I would imagine that this can be tested using the emulator and
> mouse pointer, but I am not sure how to get started.
>
> OR does one have to have access to a Touchscreen capable device to
> test this?
>
> Thanx in advance
>
> ICA

Shai Almog
http://lwuit.blogspot.com/

[att1.html]


Francis De Brab...
Re: Touchscreen, how to get started
Posted: Jul 30, 2008 7:56 AM   in response to: Shai Almog
  Click to reply to this thread Reply

Microemulator also handles mouse as touch screen events.
http://www.microemu.org/


On Wed, Jul 30, 2008 at 4:50 PM, Shai Almog <Shai.Almog@sun.com> wrote:
> Hi,
> you can modify every device within the WTK/Sprint Toolkit to accept touch
> events by flipping a switch within the device properties file. If I am not
> mistaken the latest version of the Sprint Toolkit includes a Skin for
> Instinct.
> Thanks.
>
> Hi
>
> This may seem like a real stupid question but I would like to know how to
> make a LWUIT application touchscreen ready WITHOUT having access to a
> touchscreen capable device.
> I would imagine that this can be tested using the emulator and mouse
> pointer, but I am not sure how to get started.
>
> OR does one have to have access to a Touchscreen capable device to test
> this?
>
> Thanx in advance
>
> ICA
>
> Shai Almog
> http://lwuit.blogspot.com/
>



--
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net


joergjahnke

Posts: 13
Re: Touchscreen, how to get started
Posted: Aug 14, 2008 12:20 AM   in response to: Ivanhoe Abrahams
  Click to reply to this thread Reply

Hi,

I hope it's OK to use this old thread for my question as it's related to the topic: How can my LWUIT application detect whether the device it's running on has a touchscreen or not? Using normal LCDUI classes, the Canvas class offers methods like hasPointerEvents, but I can't find a similar method in the LWUIT framework. Does such a method exist or is it at least planned to be added?

Thanks

Shai Almog
Re: Touchscreen, how to get started
Posted: Aug 14, 2008 12:20 AM   in response to: joergjahnke
  Click to reply to this thread Reply

Hi,
isTouchScreenDevice will be present in Display with the next drop.


> Hi,
>
> I hope it's OK to use this old thread for my question as it's
> related to the topic: How can my LWUIT application detect whether
> the device it's running on has a touchscreen or not? Using normal
> LCDUI classes, the Canvas class offers methods like
> hasPointerEvents, but I can't find a similar method in the LWUIT
> framework. Does such a method exist or is it at least planned to be
> added?
>
> Thanks
> [Message sent by forum member 'joergjahnke' (joergjahnke)]
>
> http://forums.java.net/jive/thread.jspa?messageID=293266
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]


joergjahnke

Posts: 13
Re: Touchscreen, how to get started
Posted: Aug 14, 2008 4:16 AM   in response to: Shai Almog
  Click to reply to this thread Reply

Thanks for the information.




 XML java.net RSS