In java swing applications, windows are instances of the JFrame class. In
this lab you will write a program that creates a JFrame and adds user interface
components including menus, buttons, text areas, check boxes, and radio buttons. When
you have completed all the exercises, your program should open a window that looks
like the sample solution shown below:

Add code to the main method to create and display an empty Order Placement window. It should have "Order Placement" in the title bar, and the rest of the window should be empty. You will need to use the JFrame constructor method that takes a String (specified in quotation marks) as a parameter.
You will need to set the frame's size to something reasonable and
set its visibility to true so it will show up on the screen. This
is accomplished by sending setSize and setVisible
messages.
To make the close box work, send a setDefaultCloseOperation
message, passing a parameter to indicate what should happen when the
window closes. You should supply the
value JFrame.EXIT_ON_CLOSE.
You should now be able to test your code and see a window open on the screen.
JMenuBar object using the default (no parameter)
constructor for JMenuBars. Create a JMenu object for a "File" menu
using the JMenu constructor that takes a String parameter for the menu name.
Use the JMenuBar add method to add the file menu to the menu
bar. Finally, use the JFrame setJMenuBar method to
set your JFrame object's menu bar to the one you created. Now test your code.JMenuItem for a "Quit" item using the JMenuItem
constructor that takes a String parameter for the menu item. Use the add
method of the JMenu class to add the Quit item to your File menu. Test
your code. setLayout(null). setSize and setLocation methods that all user
interface components inherit from the Component class.add message to add the component to
the frame.setSelected message, passing the parameter
value true.ButtonGroup. Create a ButtonGroup object and
send it add messages to add the two radio buttons to the
group.setText message.JScrollPane. Surprisingly, there is no add
method in the JScrollPane class. To put the text area in the scroll pane, you
pass it to the JScrollPane constructor. Then add only the scroll pane (not the
text area) to the frame.