Using Java
Write a GUI that will let the user sample several types ofborders using a drop-down menu. Options include beveled (raised orlowered), etched (raised or lowered), and line (small, medium, orlarge) borders. For line borders, provide a submenu which allowsthe user to select the border color (black, red, or blue). Add atext field identifying the type of border in the center of thewindow.
Put the borders around a JLabel containing textthat describes the border, such “Raised Beveled Border”, “LoweredEtched Border”.
A sample window might look like the following on start-up:
If the user clicks on the “Borders” drop-down menu option (inthe upper-left part of the frame), and then selects the “Etched”option, the screen might show a nested menu:
Instead of selecting an “Etched” border, if the user selects“Line”, then any of the suboptions (“Small”, “Medium”, or “Large”)for Line borders will bring up a sub-submenu asking for the colorof the border (“Black”, “Red”, or “Blue”):
This might be the result of the user selecting Line → Small →Blue.
Now, experiment by using different fonts and font sizes for eachtype of button. For example, use Times Roman for a beveled border,use Century Gothic for an etched border, and use Broadway for aline border.
Submit listings for all of your class(es), and PrintScreensshowing several different menu options, sub-menus, and theresulting borders.
Borders Demo Borders Raised Beveled Border Borders Demo Borders Beveled Etched Line Raised Lowered aised Beveled Border Borders Demo Borders Beveled Etched Line Etched Border Small Medium Large Black Red Blue Borders Demo Borders Small (5 pixels) BLUE Line Border Show transcribed image text Borders Demo Borders Raised Beveled Border
Borders Demo Borders Beveled Etched Line Raised Lowered aised Beveled Border
Borders Demo Borders Beveled Etched Line Etched Border Small Medium Large Black Red Blue
Borders Demo Borders Small (5 pixels) BLUE Line Border
Expert Answer
Answer to Using Java Write a GUI that will let the user sample several types of borders using a drop-down menu. Options include be…