Results 1 to 2 of 2
  1. #1
    KyPTeD is offline Member
    Join Date
    Dec 2013
    Rep Power

    Default "Translating" from one text field to another

    Hello there,
    a nebwie is speaking over here. So I have started very recently to program Java in NetBeans. I would really want to know: How to "translate" something that is in one text field to another? I mean:

    -Imagine in the first text field I write "A". What I want is for example that in the second text field instead of an "A" I see a "B".

    I have put the text fields in a JFrame.

    Sorry, but I am very new, if anyone could explain it to me I would be very thankful!

    Thanks! Merry Christmas!
    Last edited by KyPTeD; 12-16-2013 at 07:25 PM.

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    The Netherlands
    Rep Power

    Default Re: "Translating" from one text field to another

    See KeyListener.

    Edit: A DocumentListener could be used as well.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 09:29 AM
  2. Replies: 3
    Last Post: 10-30-2012, 04:06 PM
  3. Replies: 2
    Last Post: 09-29-2012, 10:25 AM
  4. The field "name" doesnt apparently exsist :/
    By Addez in forum New To Java
    Replies: 6
    Last Post: 10-22-2010, 11:15 PM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Posting Permissions

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