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.

Results 1 to 8 of 8

Thread: I am building a simple on screen keyboard and then I want it to communicate.......

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Location
    Malta
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 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..


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default 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.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Location
    Malta
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 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...

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: I am building a simple on screen keyboard and then I want it to communicate......

    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.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Jul 2012
    Location
    Malta
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: I am building a simple on screen keyboard and then I want it to communicate......

    Quote Originally Posted by Norm View Post
    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

  6. #6
    Junior Member
    Join Date
    Jul 2012
    Location
    Malta
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 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

  7. #7
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: I am building a simple on screen keyboard and then I want it to communicate......

    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.
    If you don't understand my answer, don't ignore it, ask a question.

  8. #8
    Junior Member
    Join Date
    Jul 2012
    Location
    Malta
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 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...

Similar Threads

  1. Replies: 9
    Last Post: December 31st, 2011, 01:22 AM
  2. Help, Building List & finding min and max
    By Margaret_Girl87 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: November 30th, 2011, 07:15 PM
  3. Need help building a simple calculator
    By zigma in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 14th, 2011, 01:13 AM
  4. help building up GUI for poker game
    By Pencil in forum AWT / Java Swing
    Replies: 5
    Last Post: October 26th, 2010, 02:53 PM
  5. Replies: 8
    Last Post: August 6th, 2009, 01:35 PM