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..
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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..
Can you post the code you have and the problems/questions you have about it?
Also describe the project in more detail.
If you don't understand my answer, don't ignore it, ask a question.
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...
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.it is possible to build this type of communication between windows.
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.
If you don't understand my answer, don't ignore it, ask a question.
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
They both can be shown at almost the same time.which panel I do first the on screen keyboard or the one which will be holding the text field
Please post the code that you are having problems with.
If you don't understand my answer, don't ignore it, ask a question.
ok I am going to start working on it I will call you back thanks...