How can I handle touch screen events with Swing?

Hi,
I was wondering how i can handle touch screen events. Are there APIs for that or is it just a mouse event?
Thank you in advance.
Tim

I have recently created an application that ran on a touch screen system. I used the normal mouse events attached to the swing components (onClick) and these were translated by the touch screen. Typically I created a calculator type keypad, touched the screen on the text box where I wanted the data to appear and then pressed the keypad buttons to populate the field. No special drivers, just using swing components
Hope that helps
yeah, this is really useful info.. me too trying to build an application for the touch screen... just wondering how other events like focus gained, tree selection events are recognized by touch screen? can we have focus and tree, table selection events etc, as it is in the touch screen as well?? or everything is just mouse event only??

Similar Messages

  • Handling Touch Screen Events for Sony Ericsson P990i Phone

    Hello all,
    i recently just learned Java and i am trying to develop a GUI for a phone - P990i. I was wondering how i can handle touch screen events. Are there APIs for that or is it just a mouse event?
    Any help is very much appreciated.
    Thank you.

    Hello all,
    i recently just learned Java and i am trying to
    develop a GUI for a phone - P990i. I was wondering
    how i can handle touch screen events. Are there APIs
    for that or is it just a mouse event?
    Any help is very much appreciated.
    Thank you.Hi there,
    Have you found an answer for this question?
    Thanks.
    Tim

  • How can I restore touch screen capability on safari?

    The touch screen on my ipad2 when in safari has become inactive. I can open web pages but not click links in them. The web page has taken on a gray tint. The top right corner shows a padlock surrounded by a refresh symbol. I suspect this is something simple.  Any ideas?

    Go to Settings>Safari>Clear History, Cookies and Cache or Data. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • How can I disable touch screen for HP Pavillion DV3-2310ea

    Howdy
    The touchscreen on this laptop can be annoying - even though I've reduced the sensitivity, living in a cat rescue home is challenging to say the least when a strand of cat fur gets on the screen or when a tail brushes the screen, not to mention a cat sneeze -_-
    I've been looking around for solutions and I found one stating unchecking the box in "Pen and Touch" in the control panel - however on this laptop there's no box to uncheck  
    I can't find any settings to disable touch screen, so would anyone know if there's a driver I can temporaraily disable (I'd like to KEEP the option to enable the touch screen - just to show off to friends ) 
    Thanks for your time - Gypsy
    P.S I'm sorry if this topic has already been discussed I've just joined to ask this question 

    Hello,
    Would like to leave my contibution on this post:
    In order to disable the touchscreen, you have to go to control panel, select Tablet PC settings, then select Pen and touch and do what the print screens below show you:
    Let me know if this sorted out your question.
    Thanks,
    I work for HP! Please remember to provide and if this helped click ON
    Attachments:
    12513771_image7.png ‏35 KB
    windows-8-tablet-pen-and-touch-settings.png ‏154 KB

  • How can I learn "Drag and Drop" with Swing components?

    Hello,
    Im using swing components, so using paint() to draw a "drag icon" doesnt seem acceptable. Im basically trying to move a JPanel image to be dragged/dropped over another JPanel in the same program/applet.
    I looked at Sun's Java Tutorial for information on doing drag and drop, but there was no trail completed yet.
    Does anyone know of any good resources to learn? Or can at least give me a general idea of how to do drag and drop?

    Did you see this?
    http://java.sun.com/docs/books/tutorial/dnd/index.html
    http://java.sun.com/docs/books/tutorial/reallybigindex.html

  • How can i handle with event, when i close a file (notped or word,excel..)??

    How can i handle with event, when i close a file (notped or excel...). i want do something..
    Edited by: Legy on Apr 21, 2008 11:45 PM

    of course notepad.exe is closed again as soon as the operating system has completed the process of loading its content into memory...
    And no "event" is fired when that happens, except maybe internal to the process that loaded the application to indicate that it's been loaded successfully and can now be executed.
    But there's no way your Java process is ever going to receive that notification.

  • How can I stop the screen from rotating on my iPod touch?

    My son is blind and has an ipod5 using the voice over feature. Everytime he moves it says landscape bc of the screen rotating. How can I stop the screen from rotating on him?

    To lock the screen in portrait orientation, swipe up from the bottom edge of the screen to open
    Control Center, then tap  the icon with an arrowed circle with a padlock inside
    page 20 of
    ios 7.0 ipod touch Manual

  • How to restore my ipad?My ipad say on screen CONNECT TO ITUNE.How can i do when i connect with computer.It is need itune new version.Can you sent me.I will be waiting your answer.Please help me sir.

    How to restore my ipad?My ipad say on screen CONNECT TO ITUNE.How can i do when i connect with computer.It is need itune new version.Can you sent me.I will be waiting your answer.Please help me sir.

    Check for Updates.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%208/78d42b19fa42e8d83b5 5a65e1333373f_zpsf58bbe10.jpg

  • How can we handle browser settings while dealing with the security ?

    Hi ,
    how can we handle browser settings while dealing with the security ?When we configured security in web.xml , during the first request the container is asking for the authentication credentials once they are provided it go's on. but when the user gives a fresh request from the second window within the same browser that time it is not asking for authentication. How can we overcome this.Is there anything to do with server configurations?
    How can we make the container no to keep the things or act like session?

    Ya... I am taking a small example need not happen always but a kind of possibility i am thinking off.
    once the user sign out and just left without closing the browser and a friend (suppose not a good friend ... just kidding...) of that user may open the same jsp or file .This time the security is breached. If that feature or property exists....
    I know what you might say ... the user will log-out before leaving where a programer might invalidate the session at the time of log out.
    Consider the case of a bad Programing or just a programer might forget to invalidate,At that time as a application administrator how can he solve that issue.
    Thanks.......
    Edited by: user8483670 on Jun 6, 2011 1:08 AM
    Edited by: user8483670 on Jun 6, 2011 1:09 AM

  • I updated my iPhone 4 to iOS5 and let it sync with my Macbook and now all my iPhone iCal entries are gone. How can I get my iCal events back on my iPhone?

    I updated my iPhone 4 to iOS5 and let it sync with my Macbook (running Lion) and now all my iPhone iCal entries are gone. How can I get my iCal events back on my iPhone?

    Me too!  Help anyone?

  • How can I synchronize my iPhoto events? my iTunes doesn't read them and with the app Images in the iPad I can only find Photos, Albums, Faces and Places, not Events.

    How can I synchronize my iPhoto events? my iTunes doesn't read them and with the app Images in the iPad I can only find Photos, Albums, Faces and Places, not Events.

    I had a problem a couple of months ago when iPhotos suddenly rearranged the order of my Events (Why won't iPhoto let me arrange my photos?) .  I was told "Use albums not events - events are not a good way to organize - albums and folder are designed for organisation and are very flexible".
    Haha!  I should have paid attention and read between the lines!  My iPhotos were highly organised groupings - not according to date but the way I wanted them - and it was so easy to do!  I see now that if I had them all in albums, as per the Apple Apologist suggestion, I wouldn't have this unholy mess I have been left with just to make iPhone & iCloud users happy.  I am now going through Photos and making Albums (of what used to be in my Events)  ... maybe I'll get this finished before they do another non user friendly update!

  • How can we handle dateformat from diff countries into india in bdc with out

    hi
    experts can u help me pz
    how can we handle dateformat from diff countries into india in bdc with out chnaging system parameters while uploading.
    i.e flatfile date is germanformat
         target date is indianformat.
    thanks and regords.

    use WRITE statement to format date.. along with extension ...
    DD/MM/YY
    or
    DD/MM/YYYY

  • How Can I Take Print Screen With in java Application

    Hello Every One,
    Hope U all r fine.
    How can i take print screen with in java code,
    Please Help me out

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Btitle%3A%22print+screen%22&col=javaforums

  • I made a website and the domainname is tschantré with that special é (egue). but it gives me an error, how can i handle that?

    how can i handle that i can gibe the domainname with é - any code? or something else?

    Could you please confirm the error message you are getting and whether it is while adding domain in File > Export as HTML or File > Upload to FTP host option or if there is a different location you are referring to?
    I checked and both the Export and Upload to FTP options both accept the accented characters in domain name field.
    Cheers,
    Vikas

  • Can I replace the screen myself with a kit on my iPod touch?

    Can I replace the screen myself with a kit on my iPod touch?   Stores are charging in excess of 100 dollars to fix them.

    Note, though, that if you do the repair yourself or have any unauthorized shop do it, you will void any further support from Apple, including having them replace the iPod for their out-of-warranty replacement fee.
    Regards.

Maybe you are looking for

  • Can a quizz created in adobe captivate be published through adobe formscentral.

    I currently give printed question papers to my students.  As the adobe captivate is most suitable for quiz creation, is it possible to distribute the quiz created in the adobe captivate through adobe form central and collect the answers given by the

  • Adapter issue or battery issue?

    My brand new Macbook Pro is occasionally not charging.  Is it an issue with the adapter or battery?  Anyone experiencing this same problem? Please help!!

  • My Toshiba is stuck on shutting down screen

    I have a Toshiba satellite p55t a5118 with windows 8.1 i7 8gb ram 1tb HDD. My computer is stuck on blue "shutting down" screen. And the keys are not responding. I have tried letting the computer die, there is no place for me to take out the battery,

  • Distance_type and distance in std namespace

    Hi all, The following code is compiling under windows (VS 2005): vector<double>::iterator::distance_type n = std::distance(x,xmax);Under unix, and using sunstudio12 and CC 5.9, I have the following error: std::vector<double>::iterator is not a namesp

  • Character deleting

    Hello everyone! What I want to do is delete the spaces and quotation marks in a String. let's say I have a String like this: Here are a few spaces" text_test_blubb : " and what I want to get is this, after removing the characters: text_test_blubb : T