CS3340:   Intro OOP and Design

 

Java Discussion Questions

1. What is the inheritance hierarchy for menus?

2. What is a menu bar? What is a menu? What is a menu item?

3. How are menus added to a menu bar?

4. How is a menu bar added to a frame? Can other components have a menu bar?

5. How are menu items added to menus?

6. What is a separator? How can a separator be added to a menu?

7. How can a menu item be enabled and disabled?

8. How are menu item events handled?

9. Why would you want to keep menu items and corresponding buttons in the same class?

10. What is a submenu? How are they created? What is an advantage and disadvantage of using submenus?

11. What is a keyboard mnemonic?

12. What methods are used to add keyboard mnemonics to menus and menu items?

13. What is an accelerator key?

14. What classes, methods, and fields are used to add accelerator keys?

15. How do accelerator keys and mnemonics differ?

16. What is a radio button menu item? How are radio button menu items added to a menu?

17. How are radio button menu item events handled?

18. What methods are used to work with radio button menu items?

19. What is a check box menu item? How are check box menu items added to a menu?

20. What methods are used to work with check box menu items?

21. What is a pop-up menu? How are pop-up menus added to a frame?

22. How are pop-up menu events handled? How can an anonymous class and an adapter class help shorten the code need to handle pop-up menu events?

23. What methods are needed to determine what button on the mouse is pressed and its location on the frame?

© Lynne Grewe