Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Random numbers generator that takes user input of min and max from Jtextfield

  1. #1
    Junior Member
    Join Date
    Nov 2021
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Random numbers generator that takes user input of min and max from Jtextfield

    Please help!!!!


    Start range in this case refers to the lower limit and end range refers to the upper limit. For example, a person may choose to generate 8 random numbers within the range of 10 to 50. The start range in this case will be 10, the upper range will be 50, and the number of random numbers to be generated will be 8.
     After the user is done selecting the three input values above (you have to choose the most appropriate input method which could be for example using a text field or a combo box), he/she has to click a button in order to generate the random numbers.
     The generated random numbers should be displayed in an appropriate output component. This component should be able to display results from more than one spins (button clicks).
     The user upon clicking a button should be able to clear all the values selected by clearing all the fields and/or setting field values to a specified default.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,878
    Thanks
    58
    Thanked 2,690 Times in 2,640 Posts

    Default Re: Random numbers generator that takes user input of min and max from Jtextfield

    What have you tried?

    Post your current code wrapped in code tags and ask questions about what problems you are having.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] Random 4 Char Generator Generates 3 Numbers Instead?
    By BenjaminJ in forum What's Wrong With My Code?
    Replies: 8
    Last Post: July 10th, 2014, 08:19 AM
  2. JFrame + JTextField and Random Number Generator
    By Richard_Harrow in forum AWT / Java Swing
    Replies: 7
    Last Post: December 8th, 2013, 05:30 PM
  3. How to repaint() a class in a JFrame, with a JTextfield user input
    By DANGEROUSSCION in forum Object Oriented Programming
    Replies: 1
    Last Post: March 23rd, 2013, 03:06 PM
  4. Replies: 4
    Last Post: February 10th, 2013, 11:58 PM
  5. Java Bar graph takes user input to create graph?
    By kenjiro310 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 31st, 2011, 07:37 AM

Tags for this Thread