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...
Which of the following audio files would most likely be used to create sound files for UNIX computers?
A) bells_ringing.mp3 B) traffic.wav C) cat_purring.au D) dog_barking.midi
Which functions in class D are virtual?
``` class B { public: virtual void f(); virtual void g(); // . . . private: //. . . }; class D : public B { public: void f(); void g(int); private: // . . . }; ```