DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009

    Showing all input fields

    I dont like this sequence because i should input first the name before showing the next input fields i want to happen is showing all the input fields then i can use the arrow keys to scroll up and down.

    System.out.print("Enter Your Name: ");
    name =input.readLine();
    System.out.print("Enter Your Age: ");
    age =input.readLine();
    System.out.print("Your Address: ");
    add = input.readLine();
    This is i want to happen:

    Enter Your Name:________
    Enter Your Age:__________
    Your Address:___________

  2. #2
    Join Date
    Dec 2004
    San Bernardino County, California
    If you design a GUI for your program you could do exactly as you desire. However, if you leave it as is, you cannot do what you want because you have coded your program to wait until a user inputs data before it can move on to display the prompt for the next bit of data.

Similar Threads

  1. how to take input and verify input in Java
    By bilal_ali_java in forum Java
    Replies: 1
    Last Post: 07-21-2007, 10:19 AM
  2. Replies: 2
    Last Post: 05-21-2006, 02:02 PM
  3. Size of INPUT fields differs
    By Per Loevgren in forum Web
    Replies: 1
    Last Post: 08-30-2001, 09:53 AM
  4. Replies: 1
    Last Post: 07-03-2001, 09:45 AM
  5. Problem with data environment not showing fields
    By james-marchant in forum VB Classic
    Replies: 0
    Last Post: 01-05-2001, 10:33 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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center