Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Posts
    2
    Rep Power
    0

    Default [Virtual KeyBoard] - Anybody know ?

    Good afternoon everybody.

    Anybody know if there is a virtual keyboard (like the Windows XP) written in Java?

    Will I spend my graphical interface for touchscreen and would like to use a virtual keyboard. My application is Desktop.

    If I do not find, have idea to implement it?

    Sorry to my english, I'm Brazillian boy and english is very hard to me.

    Thanks

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    That would be a neat idea.
    I can't imagine how the virtual keyboard would be able to send keystrokes to the host operating system, so as to be an input for other general applications, without some kind of custom native component to receive messages from the java virtual keyboard and send them into the operating system usual facility for reading keyboard input (for example, on Linux, a USB HID input device).

    But I think it would be quite possible to make a panel with buttons where the action of touching buttons on the virtual keyboard on the screen would be able to generate events that could be sent to anything within the same application. Most Swing UI components allow you to implement a KeyListener interface. In the first attempt of making a virtual keyboard, you could try invent your own key listener interface and have your components implement that. Thats kind of messy though, but likely something complicated like this would be needed because we want keyboard input to go to a component that has focus (which is usually the last widget that was clicked on), where as touching the screen where the virtual keyboard is would cause the button on the virtual keyboard to now have focus right).

Similar Threads

  1. tomcat virtual hosting ...
    By vinoopraj in forum Advanced Java
    Replies: 4
    Last Post: 03-18-2009, 10:30 AM
  2. Using Corba and Virtual Address
    By amin@multid.se in forum Advanced Java
    Replies: 0
    Last Post: 02-25-2009, 10:41 PM
  3. Virtual table?
    By kblackwell in forum New To Java
    Replies: 4
    Last Post: 01-31-2009, 10:54 PM
  4. Too many virtual Machine
    By davantmay in forum Java Applets
    Replies: 1
    Last Post: 07-06-2007, 10:53 PM
  5. Virtual Machine To Pda
    By Heather in forum Advanced Java
    Replies: 2
    Last Post: 06-30-2007, 03:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •