Chapter 13: Problem 13
What class do you use to create a regular menu item? What do you pass to the class constructor?
Short Answer
Expert verified
Answer: In Java, using the javax.swing package, the JMenuItem class is used to create a regular menu item. The most commonly used constructor takes a single parameter: a string representing the menu item's text.