• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

create an on screen keyboard that run on linux

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
i want to create an on screen keyboard that run on linux. can anyone give me some idea or sample application on that. thanx.
 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just create your keyboard using java swing! A GridLayout and a number of buttons and voila.

For a more complex keyboard you can use a gridbaglayout.
 
t kokliong
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Manuel,
thanx for your suggestion but that just only for the screen interface layout. Do you have any suggestion about how to get the focus and keying word on the textbox at the browers from the on-screen keyboard?
thanx.
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
he's crossposted this same question in identical wording to many sites and forums all over the web...

"do my homework for me" as usual.
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it a problem to ask a question on different forums? I don't see why he may not do this! If may results in different answers and different views on the issue.

Can you explain a little more what your requirements are?
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's no problem, but together with the obvious lack of interest in doing his own research and the fact that he posted the exact (identically worded) question and topic (and therefore I conclude copied and pasted everything from elsewhere instead of even taking the trouble to write it out each time) it becomes something else.

I sometimes post questions in several venues, but I always take care to at least word them differently and usually I wait to see if I get an answer in one place before attempting another.

The OP's attitude seems to be one of not trusting to get an answer anywhere and therefore using a shotgun approach not dissimilar to the spammer who sends out a million emails in the hope that one sucker falls for it and buys his goods.
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have also seen people who ask questions that can be resolved by simply typing in 2 words in Google. This person has some vague requirements, I give you that, but I do not see a problem in the question that he asks and the fact that he poses the question on different forums in identical phrasing.

Maybe it's me, I am to good for this world

Now, back to the question. If you still would like some answers t kokliong, please clarify a little further what you require. Do you want an applet that serves as keyboard input? Please elaborate!
 
t kokliong
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Manuel,
maybe I typed my question too short that you didn't get it. Actually my question is I want to create a 'virtual keyboard / on-screen keyboard' application that can run on top of a browsers for example Mozilla browser. When a Mozilla browser is open and browsing at any site, the on-screen keyboard application must be able to get the cursor focus on the textbox at the browsing site so that when I keying on the on-screen keyboard the character will be enter on the textbox at the browsing site. And this on-screen keyboard application have to run on linux platform.
And my problem is actually on how to get the focus and passing the keystrokes to the browser. And actually I have do some research on this and all the information i got is all relating to window platform while for linux platform i found very few information on this. That why i posted this to get more idea.
thanx.
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, honestly, I doubt you will be able to do this using plain java.

You will have to address some native code in order to forward key events to other applications. You can access native code using Java (JNI) but that means the only thing Java about your application will be the GUI.

So, I'm sorry but I don't think you will be able to do it. It you write your keyboard it will not be in Java and you will have to call OS specific APIs to do this.
 
t kokliong
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok. thanx for the suggestion.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic