package gradertool.view; import javax.swing.*; import java.awt.*; import java.awt.event.*; /**** * * Class WindowMenu is the "Windows" pulldown menu in the GraderToolUI prototype. * */ public class WindowMenu extends JMenu { /** * Constructor for WindowMenu */ public WindowMenu() { super("Window"); /* * Add this item to the menu, with separators in the * appropriate places (per the requirements). */ addWindowsItem(); } /** * Add the '' menu item. */ protected void addWindowsItem() { /* * Use the standard menu item pattern for the item. */ add(new JMenuItem(" selected."); } } ); } }