Menu

Joptionpane showinputdialog two input fields la

3 Comments

joptionpane showinputdialog two input fields la

Post Reply Bookmark Topic Watch Topic New Topic. I am pretty sure the answer to my question will be NO, but I will ask anyway. For two homework assignment in my Into to Java Class I have to write a simple program that will take user input in the for of a string for gallons and miles driven and compute the MPG. I have the program doing what I need it to for the assignment, but Showinputdialog would like to go a small step further. I do not like the fact that it is two two dialog boxes to input the two numbers. Is there any way, showinputdialog using joptionpane. I know that I could make a custom dialog two, but that is well beyond the scope of the assignment. Below is a snippet of code showing what I am currently doing. Hi Paul, if you do not insist on two input fields, you might want to joptionpane this solution: Then let a java. StringTokenizer object parse the input string appropriately. This will do although the custom dialog you mentionend would be a more elegant solution. Input here's the code fields Just don't forget to import java. StringTokenizer ; Regards and have fun with Java, Manfred. Input, Welcome to the Ranch Please don't wake the zombies. Did showinputdialog notice, the original thread is from fields I doubt the original poster would wait 7 years for an answer To get an idea of how to get the most out of the Ranch, please do take out time to read these guidelines Fields yes. Also please check your private messages for an important joptionpane matter. Lost in simple applets. GMT-6 input summer, GMT-7 in winter.

Java Tutorial 4: JOptionPane Input Integers

Java Tutorial 4: JOptionPane Input Integers joptionpane showinputdialog two input fields la

3 thoughts on “Joptionpane showinputdialog two input fields la”

  1. AkadEhensg says:

    The Senate also passes its third repeal of the harmful global gag rule.

  2. Amantlu says:

    Now, I have to emphasize that I mean it Just like I meant the other.

  3. account640 says:

    It currently enrolls students in pre-K through ninth grade in small classes that are grouped by ability, not age.

Leave a Reply

Your email address will not be published. Required fields are marked *

inserted by FC2 system