File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Touch Screen Action Event Listener GUI program coding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Touch Screen Action Event Listener GUI program coding" Watch "Touch Screen Action Event Listener GUI program coding" New topic
Author

Touch Screen Action Event Listener GUI program coding

Simon Evans
Ranch Hand

Joined: Mar 27, 2008
Posts: 93
Dear Programmers,
I am interested in making a website which could be operated by merely touching the screen (thus cutting out the need for keyboard/ mouse input). I have heard such touch sensetive screens exist - such as the Wacom Cintiq Tablet PC, or even on the more modern mobile phones.

I wanted to know if any of you know where I could obtain information/ instruction on Java code that can create a program that incorporates action Events/ Listeners to the GUI that is screen operable - that could be accessed - and operated by a touch sensetive screen.

Anyway, hope you can offer me some advice or leads on this.

Thank you for reading.

Yours
Simon


Simon
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38765
    
  23
Have you got a touchscreen? What have you tried? Won't ordinary ActionListeners work?

Is tapping a touchscreen at all different from clicking a mouse in the same location?
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
I think Campbell is right - a touchscreen would likely would come with a driver that replaces a mouse driver. Applications running on an operating system with such a driver installed wouldn't even notice the difference to normal mouse usage.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Simon Evans
Ranch Hand

Joined: Mar 27, 2008
Posts: 93
Dear Programmers,
No, I haven't got a touchscreen at present, but am planning on getting a Cinq tablet, and an I-phone, cashflow permitting, still,as I am interested in this TouchScreen operable Website project, the cost of the hosting of it would take fiscal priority.
Anyway getting away from the prosaic world of cash and consumer durables, I was given to understand that the programming of screen touch activated action listeners on a GUI requires not just the hardware (the consumer durables) but also the software ie: the GUI that is accessed by the touch sensetive pc unit, and it is the programming of such a GUI that would be my main priority. I suppose I could program a GUI to keyed/ mouse input, but taking the bull by the horns as it were, would prefer to proceed straight to programming it with screen touch action event listeners. I was given to understand that such action event listeners require a different coding to keyed/mouse input listeners, and that the coding is out there somewhere, but the same person who told me this, couldn't say specifically where such code could be located. Which is the reason why I was asking.
I am thankful for Heraclitus' opinings, but would suggest that conversely as thoughts are dyed the color of the soul, disintegration is as much ones liable destiny.
Anyway, thank you for your suggestions thus far,
hoping to hear
Yours
Simon
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38765
    
  23
Just as well I haven't put a classical quote on my postings

I tried googling and these are a few links 1 2 3 Don't know how useful they will be.
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
I love your big 'fancy' words, but to get to the point. You would need.

A) a touch screen personal laptop/pc
or
B) a touch screen device with an emedded mobile OS.

for choice a, you could just treat the programming the same as the os would have a driver that would recognize screen taps as mouse clicks and screen drags as mouse drags and etc.. etc....

for choice b, you would need to use the java emedded programming package ( kind of like .NET Compact Framework).

All in all I wouldn't think the API's would be THAT different.

so good luck!

Justin Fox


You down with OOP? Yeah you know me!
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
This was the first hit when googling for "java touch screen": http://forum.java.sun.com/thread.jspa?threadID=691556&messageID=4020189
Simon Evans
Ranch Hand

Joined: Mar 27, 2008
Posts: 93
Dear Programmers,
Thank you for your advice, I shall look these references up.

(- like all sophists, just filthy jealous of genii like Heraclitus)

Yours
Simon
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Touch Screen Action Event Listener GUI program coding