Results 1 to 3 of 3
  1. #1
    mtwisd is offline Member
    Join Date
    Apr 2009
    Posts
    3
    Rep Power
    0

    Unhappy how do you bypass the enter(/n) sign in a program?

    Hello,

    I need a simple program that ask's to enter an integer from 0-9 without having to press the enter key. I just want to press the integer key and I want the program to read the key and store it in a variable. Please help me. I am not very proficient in Java. I need help!

    :(

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    843
    Rep Power
    6

    Default

    Hi,
    You can use eventhandling in java.You are having KeyListener and with the help of this you can do whatever you want only for GUI.I will send u the sample code.
    -Regards
    Ramya

  3. #3
    srisar is offline Member
    Join Date
    Jul 2009
    Location
    batticaloa, Sri Lanka
    Posts
    30
    Rep Power
    0

    Default

    can you please post the sample code here... i need it too..
    thanks in advance

Similar Threads

  1. enter a string sentence
    By amorosa19 in forum New To Java
    Replies: 13
    Last Post: 09-06-2013, 11:34 AM
  2. what code for not hitting enter?
    By tornbacchus in forum New To Java
    Replies: 4
    Last Post: 04-11-2009, 05:59 AM
  3. bypass NTLM login
    By ruchsriv in forum Web Frameworks
    Replies: 0
    Last Post: 03-30-2009, 09:23 AM
  4. enter key problem
    By masa in forum AWT / Swing
    Replies: 3
    Last Post: 03-19-2009, 08:30 AM
  5. Javascript and enter button
    By Eric in forum Advanced Java
    Replies: 1
    Last Post: 06-11-2007, 10:39 PM

Posting Permissions

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