JavaTest

Java Swing Test
Use NetBeans IDE to program this scenario entirely as a Java Swing application (don't use JOptionPane or System.out.println)

Universal Converter - Write a program that uses option buttons to select between the following conversions:


 * inches converted to centimeters
 * centimeters converted to inches
 * feet converted to meters
 * meters converted to feet
 * ounce converted to milliliter
 * milliliter converted to ounce

The program should have ONE input box and ONE output label. There should be a button labeled "CONVERT" that performs the conversion indicated by the option button selected. To save you time, I've found the conversion algorithms for you:

1 inch = 2.54 centimeters 1 centimeter = 0.3937 inches 1 foot = 0.3048 meters 1 meter = 3.2808399 feet 1 ounce = 29.5735296 milliliters 1 milliliter = 0.033814 ounces

Your program should have a useful title in the title bar. All of your elements should have unique and useful variable names. You should use at least 1 double variable type to parse the text box input. YOUR OUTPUT LABEL must say "x inches is y centimeters", "x centimeters is y inches", "x feet is y meters", etc. - you will have six different outputs depending on the radio button selected.


 * Here is a SAMPLE program screen shot. Yours may look different, but should have the same elements.



Grading**

Layout/Design/Spelling: 10 points Code for each option button: 30 points Output in correct format: 10 points -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 * Total: 50 points**