File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes what UI to use for touch screen application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "what UI to use for touch screen application" Watch "what UI to use for touch screen application" New topic
Author

what UI to use for touch screen application

swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129
Hi guys,

I have to develop an application which is touch screen application.
In that user is able to touch the screen and particular button is get pressed from touching the screen.

what should I use to show the UI ?

thanks in advance
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

I'm guessing your touch screen device has an API you can use?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19785
    
  20

Depends on the system.
Can you use Java SE? Then go for Swing. If I recall correctly, touches are handled as mouse events.
Can you use Java ME? Then go for that.
Any other systems?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129
there also a task in that i have to press particular button for particular amount of time.
means that button is get pressed for near about 5 secs...

is it possible using any api or i have to use thread operation.

its just like toggle button operation but for particular amount of time after that button should get released....
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19785
    
  20

As we've asked you before, please tell us which device you're programming on. I can tell you to look at MouseListener, JButton etc but that won't make any sense if you're stuck to JME.
Karan Johar
Greenhorn

Joined: Oct 02, 2009
Posts: 25
Touch Screen applications are no different from other ordinary applications, except that instead of mouse person is using touch-screen mechanism. So, the application 'usually' does not have to do anything special. It is the device which should be capable of translating 'touch' on the screen into a mouse event for underlying UI.
 
Don't get me started about those stupid light bulbs.
 
subject: what UI to use for touch screen application