1 down vote favorite i am currently working on an assignment for my java class it r 5346927

-1 down vote favorite

I am currently working on an assignment for my Java class. It requires us to change some code around in a file to add joptionpane dialog boxes in instead of the fields already there. The following is the exact wording of the assignment:

Look through the source code for the Flora. java file. Insert comment marks (//) at the beginning of all lines involving any of the message boxes, except for the MessageBox declaration statements. Directly underneath the lines that are commented out, insert new code to generate JOptionPane dialog boxes that replace the message boxes. Use the same titles, prompts, and buttons. Do not forget to import the necessary Swing packages.

I am having trouble figuring out how to add a JOptionPane box in. I imported the swing for the joptionpane but I need assistance setting it up for the boxes

String code; if (arg == “New Sticker”) code = “N”; else code = “R”; if ( (vin.getText().compareTo(“”)

"Get 15% discount on your first 3 orders with us"
Use the following coupon

Order Now