Read a character without enter

I need to read a character from the keyboard , but I want it read without hitting <enter> to start the reading;
the system should be waiting for for a key to be hit, and right after the hitting it should know which key it was;
it's absolutely important that the <enter> is not hit to start the reading process
also the solution should be as simple as possible, i.e. without any graphics or stuff like that; my program is only using the command line
can anybody help me?
pratajev

use the KeyListener
Method Summary
void keyPressed(KeyEvent e)
Invoked when a key has been pressed.
void keyReleased(KeyEvent e)
Invoked when a key has been released.
void keyTyped(KeyEvent e)
Invoked when a key has been typed.
and then treat it with the
KeyEvent.getKeyChar() method

Similar Messages

  • Can´t open LR after upgrade to 5.3 without entering a licens key

    Can´t open LR after upgrade to 5.3 without entering a licens key

    I have seen comments from someone who indicated that every time they started Lightroom they were prompted for the serial number, even though they had already entered it. Is this your situation? I can't remember what the solution is, but I have seen that problem mentioned in the past.

  • Is there a way to backup the iphone without entering a passcode that was previously set?

    I have a passcode on my iphone, which I recently dropped. Both the front and back screens are cracked severely. I can see when someone txts / calls, so the phone appears to be working, however it is not usable. I cannot access anything on the phone using the touch screen. The screen continues to shake as if there are multiple fingers trying to operate it at once.
    Although it would be nice to get back into the phone, I would prefer being able to back it up just one more time. I sync frequently to icloud, but the last time I backed it up to my pc was 11/16/2011. I can access everything I've backed up(txts, images, etc via other applications), but I have some important correspendeces that took place between then and now that I would like to have.  
    Is there way for me to backup the phone without entering the passcode?  Also, I have read through some of the discussions, and pardon my ignorance but I wanted an unequivocal answer to this question:  If I restore the phone from the backup of 11/16, will I lose everything after that date? And, are there other alternatives?
    I have tried some things which I thought would be clever ways to bypass this problem, but alas...here I am asking for help. I find it frustrating that I can sync to icloud (still) yet I cannot backup to my pc without passcode. I guess a good alternative would be if I could access my txts on icloud? I may consider replacing the screen, but I don't know if this will fix the problem since the phone looks pretty bad. I also prefer not to replace the screen since I wont be using this phone any longer.
    Your comments / suggestions will be greatly appreciated.
    Thanks,
    reaL

    Restoring a phone from a backup will put the device back to the state it was when the backup took place, i.e. all info that you had on that phone before using the backup will be gone.
    You could try to restore the phone, which will back up the actual data on the phone, including the passcode, and use this backup to set up a new phone with. The passcode will still be the same, because it is  part of the backup.
    More info here, iPhone and iPod touch: Wrong passcode results in red disabled screen
    Not being able to fill in the passcode is not much different from forgetting it.
    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Also have a look at this one: iTunes: About iOS backups

  • How can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc?

    how can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc? thank you

    No. Get it fix by making an appointment with the Apple genius bar.

  • It says i have to review my apple id but how do i do it without entering a cridit card

    it says i have to review my apple id account but how do i do it without entering a cridit card

    Ok, so here's what I did:
    1.Created a new email account (gmail, to be precise)
    2.Opened iTunes (on PC with Windows 7)
    3.Browsed for free apps
    4.Tried to download one (Bubble Explode)
    5.After a message popped up I chose to create a new Apple ID, as the location I typed NY, United States
    6.The 'None' payment option did appear
    7.I  finished signup and downloaded the app on PC
    8.Signed in on my iPad 3
    9.Deleted the app and signed out on PC
    10.Connected to AppStore on the same iPad
    11.Downloaded Bubble Explode via iPad and deleted it after it's done
    Be patient, for me it took 3 days and I was furious as never before in my life since Windows Vista.
    Feel free to ask if sth. is unclear and remember that just because I made it, it doesn't mean I can do it once more.

  • My iCloud has been 'upgrading' for the last 12 hrs. That is, after I had pressed 'install after downloading the latest, improved version without entering my password. How do I get back to the window that will allow me to enter my password?

    My iPad has been 'upgrading' for the last 12hrs.That is, after I had downloaded the new version of iCloud, and pressed 'Install' without entering my password. It is probably searching for it. How do I go back to the window that will allow me to enter my password. I have tried switching off the device, but each time the 'upgrading' comes on. I have also switched it off and left it on the charger for at least 6 hrs.

    My iPad has been 'upgrading' for the last 12hrs.That is, after I had downloaded the new version of iCloud, and pressed 'Install' without entering my password. It is probably searching for it. How do I go back to the window that will allow me to enter my password. I have tried switching off the device, but each time the 'upgrading' comes on. I have also switched it off and left it on the charger for at least 6 hrs.

  • Restricting user access through single machine without entering password

    Dear All,
    We would like to provide access to temporary user and he should be able to access our Production R/3 using SAP GUI from the machine which is allocated to him and not from any other machines in the same network.He should be able to login when he click on the login pad without entering password.
    Please let me know is there a way to achieve this by changing the SAP gui settings in that machine alone/suggest me if you have an alternate solution?
    Appreciate your response.
    Thanks,
    Vadi

    Hello Vadivambal,
    Actually the second thing might be possible with logon pad. In the logon pad there is an option for short cuts. You can create a short cut for a system in launch pad which gives you the option for specifying user id and password also. However this is relevant for SAP GUI 640 or higher only. The GUI launch pad has two tabs: Shortcuts and systems. Check the short cut part.
    Regards.
    Ruchit,

  • Listen to iTunes radio without entering a credit card number

    How can one listen to iTunes radio without entering a credit card number in the iTunes registration process?

    You will need to set up an iTunes Store account using the same procedure that you would use if you wanted to obtain free iOS apps:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is  critical. Note that you can do this only when creating a new Apple ID. You cannot use an existing ID. 
    Regards.

  • HT5622 Is there any way i can use app store without entering a credit card # because i don't have one

    Is there any way i can use app store without entering a credit card # because i don't have one

    Click here and follow the instructions.
    (87861)

  • Sales order should not get saved without entering the material

    Sales order is getting saved without entering the material. How to make material entry mandatory in sales order.. so that if i try to save the sales order without entering the material the system should create an error.
    Please give a clue, if there is any way other than incompletion log.

    Dear DV,
    T. Code: SHD0
    Create a Screen Variant for Transaction VA01
    and maintain Field: Material as "Mandatory".
    Best Reagrds,
    Amit
    Note: Following is the explaination with Incompletion-Procedure -
    T. Code: OVA2 - Incompletion Log
    Select Group: B - Sales Order Item; and Double Click "Procedures" (left-hand Dialog-Structure)
    Select InCompletion Procedure: 20 - Standard; and double click "Fields" (left-hand Dialog-Structure)
    Here, Maintain entry:
    Table: VBAP
    Field: MATNR
    Screen: PKAU
    Status: 4
    Imp.: Create Z-Incompletion Procedure and make necessary changes, instead of changing a Standard one.
    Alternatively, check with Arijeet's post in following thread:
    How to restrict saving of a sales order without a material.

  • SPA3102 pstn-voip dial tone without entering pin

    Hello,
    Once spa3102 is authenticated by pin, the adapter gives dial tone without entering pin (just the # sign after the beep) even when a different phone is used to call the spa3102 pstn number.
    Isn't this a security compromise? Any one can access my voip account if the pin does not work.
    Any help will be greatly appreciated.

    that's weird...if PIN Authentication is enabled, it prompts the caller to enter the PIN number followed by a # key
    how long is your PIN?  i have the same set-up in my house and authentication works fine and i tried pressing # after the beeps but it didn't give me a dial tone....
    | isolate! isolate! isolate! |

  • Admin suddenly cannot delete files without entering password?

    Admin (and sole user) suddenly cannot delete files without entering password?

    Admin (and sole user) suddenly cannot delete files without entering password?

  • My iPhone says I can't buy thing without entering security questions which I have forget and I can't change rescue email without my security questions????

    My iPhone says I can't buy thing without entering security questions which I have forget and I can't change rescue email without my security questions????

    Then you aren't looking closely enough.
    https://discussions.apple.com/message/21396255#21396255
    https://discussions.apple.com/message/22492054#22492054
    https://discussions.apple.com/message/21098869#21098869
    https://discussions.apple.com/message/20648647#20648647
    Shall I go on?
    Anyways, his question was already answered, AND there are DOZENS of threads where the same question is answered previously.

  • I sold my iPhone 4s and the buyer can't get into it without entering in my apple ID, is there a way to bypass this?

    I sold my iPhone 4s and the buyer can't get into it without entering in my apple ID, is there a way to bypass this? I have deactiviated via my laptop but not on the device itself, i also restored the iphone to its factory settings.

    "is there a way to bypass this?"
    Only by you eitehr giving the new user your iCloud username and password or by you getting the phone back and entering it yourself.

  • How do i send a group email without entering each name

    how do I send group emails without entering each seperate? The groups I created in gmail don't show in my contacts on phone

    Hi Nancy,
    The other poster has only given a partial answer, so I thought I'd better post as its now something of a specialist subject for me.
    Groups in your device are a means to group together all your contacts for friends, work colleagues etc. in your address book. they are normally created in a Mac or Windows PC address book and synched across. However your device can't send email to everyone in those groups at once using the default apps. (The reason Apple chose to do this is probably that contacts can have one, many or no email addresses, so there isnt a direct relationship between these groups and how you'd want to email them.)
    There are a number of apps available which let you define groups and send email to them inside a custom app, this works well but you can only send mail to groups from inside their app, so you can only include attachment types they have thought of, and have no means to forward a received email with attachments to a group.
    The only app that takes a different approach is our MailShot app, this creates special group contacts in your address book. They can be used to send email to a MailShot group from inside your favourite apps, just like it was built into the iPhone. By using them in Mail you can forward emails to a group of people, with attachments intact, or by using them from a different app, like GoodReader or Google Maps, you can send whatever attachments those apps create.
    Mailshot will be back in the App store next week, free to try with an in-app upgrade available to increase the number of groups and contacts it handles.
    Peter
    Soluble Apps
    Developer of "MailShot- Group Email Done Right"
    I may receive some form of compensation, financial or otherwise, from my recommendation or link. <Edited by Host>

Maybe you are looking for