Results 1 to 4 of 4
  1. #1
    dedachi is offline Member
    Join Date
    Mar 2009
    Posts
    2
    Rep Power
    0

    Default User input- Pop Up Box

    Hello,

    I want to create a pop-up box in Eclipse, which accepts user input and on clicking Enter, processes that input to do something else.

    Eg: A pop up box which says: Enter a value
    User enters: 5 and hits Enter

    After that, 5 is accepted and multiplied by 7 and stored in a variable for further processing.

    Please suggest how this can be done.

    Thanks!

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  3. #3
    dedachi is offline Member
    Join Date
    Mar 2009
    Posts
    2
    Rep Power
    0

    Default

    Brilliant! Thanks a lot

    I did, but got caught with some implementation of JFrame.
    This works just fine.

    Thanks!!

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. how to get input from User
    By Alvaro in forum New To Java
    Replies: 7
    Last Post: 01-16-2010, 12:02 AM
  2. Getting User Input to Drawing Shapes
    By mlfatty in forum AWT / Swing
    Replies: 2
    Last Post: 03-04-2009, 07:36 AM
  3. loop when there is no user-input
    By becky in forum New To Java
    Replies: 12
    Last Post: 02-02-2009, 11:02 PM
  4. who to take user input ,not by console...
    By Shyam Singh in forum New To Java
    Replies: 3
    Last Post: 06-13-2008, 11:09 PM
  5. cant take input from user
    By new_1 in forum New To Java
    Replies: 6
    Last Post: 12-25-2007, 08:38 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
  •