proj0/examples/StdDraw.java
// create the menu bar (changed to private)
create the menu bar (changed to private)
create the menu bar ( changed to private )
private static JMenuBar createMenuBar() {
        JMenuBar menuBar = new JMenuBar();
        JMenu menu = new JMenu("File");
        menuBar.add(menu);
        JMenuItem menuItem1 = new JMenuItem(" Save...   ");
        menuItem1.addActionListener(std);
        menuItem1.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,
                                Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
        menu.add(menuItem1);
        return menuBar;
    }
private static JMenuBar createMenuBar ( ) { JMenuBar menuBar = new JMenuBar ( ) ; JMenu menu = new JMenu ( "File" ) ; menuBar . add ( menu ) ; JMenuItem menuItem1 = new JMenuItem ( " Save...   " ) ; menuItem1 . addActionListener ( std ) ; menuItem1 . setAccelerator ( KeyStroke . getKeyStroke ( KeyEvent . VK_S , Toolkit . getDefaultToolkit ( ) . getMenuShortcutKeyMask ( ) ) ) ; menu . add ( menuItem1 ) ; return menuBar ; }
create the menu bar (changed to private)
create the menu bar ( changed to private )