Write a GUI that will let the user sample borders. Include a menu named Borders that offers three options—beveled border, etched border, and line border—as submenus with the following options:
• Beveled-border submenu options: raised or lowered.
• Etched-border submenu options: raised or lowered.
• Line-border submenu options: small, medium, or large.
Each of these options should be a submenu with three color options: black, red, and blue. Put the borders around a label containing text that describes the border, such as Raised Border, Lowered Etched Border, and so forth. Fix the highlight and shadow colors for the etched-border options to whatever colors you like, and make the small line border 5 pixels wide, the medium one 10 pixels wide, and the large one 20 pixels wide.
This Programming Project is fairly easy, especially if done a step at a time. First create the menu hierarchy, then add the lines in the actionPerformed method to set the border style and change the label’s text, depending on the style selected. Note that setActionCommand is used to differentiate selections with the same text (e.g. “Raised” could be either Beveled or Etched).
See the code in BordersMenu.java.
You might also like to view...
Referring to the accompanying figure, which of the following is the Settings button?
A.
B.
C.
D.
Which type of certificate is most commonly used by communications sessions?
A. Single-sided certificate B. Dual-sided certificate C. Web of trust D. Certificate authority
Technology is the essential foundation of an effective information security program?. _____________
Answer the following statement true (T) or false (F)
Which statement is true about SQL?
What will be an ideal response?