Chapter 7 deals with all facets of several types of user interfaces. See Chapter 7 and its code for help in adding a menu item to the IDE.