I am building a simple on screen keyboard and then I want it to communicate.......
I am building a simple on screen keyboard and then I want it to communicate with a text field in another window... Any help please!!!! I am still a beginner..:)
Re: I am building a simple on screen keyboard and then I want it to communicate......
Can you post the code you have and the problems/questions you have about it?
Also describe the project in more detail.
Re: I am building a simple on screen keyboard and then I want it to communicate......
The keyboard isn't ready yet but before i make it i want to make sure that then it can be useful. I've planed to design a keyboard and each key pressed for exanple pressing the letter m is then displayed in a text field in another window. In other words you are in a window and you want to enter text in a text field... You press a side button and the on screen keyboard is displayed in another window... Then each key pressed is sent to the text field using the action listener.... The problem is ..it is possible to build this type of communication between windows... Will there be need of multi threading etc.... I just need confirmation if it can be done and how so then i can start building the program.. for example in the beginning i had the idea of sending each character to an array and then the characters in the array are put in the text field when the on screen keyboard is closed... But it isn't efficiant in seeing what are you writing continuesly...
Re: I am building a simple on screen keyboard and then I want it to communicate......
Quote:
it is possible to build this type of communication between windows.
If the two windows are in the same program, then the code in a method in one class associated with the first window can call a method in another class associated with the second window.
There shouldn't be a need for threads. The events follow one another: user does something i one window, the display is changed in the other window.
Re: I am building a simple on screen keyboard and then I want it to communicate......
Quote:
Originally Posted by
Norm
If the two windows are in the same program, then the code in a method in one class associated with the first window can call a method in another class associated with the second window.
There shouldn't be a need for threads. The events follow one another: user does something i one window, the display is changed in the other window.
Ok...Thanks for your help I'll try if I get stuck I'll call you back thanks .... Very very thanks
Re: I am building a simple on screen keyboard and then I want it to communicate......
And another thing Norm.... which panel I do first the on screen keyboard or the one which will be holding the text field. Example when from the on screen keyboard the letter A is pressed if the text field will be created in the same class the action taken would be textfield.setText("A"); but if now the text field will be in another class what will I do in the action listener....?? Thanks
Re: I am building a simple on screen keyboard and then I want it to communicate......
Quote:
which panel I do first the on screen keyboard or the one which will be holding the text field
They both can be shown at almost the same time.
Please post the code that you are having problems with.
Re: I am building a simple on screen keyboard and then I want it to communicate......
ok I am going to start working on it I will call you back thanks...