m.addKeyListener(new MooKeyboard());
pack();
Dimension bounds = new Dimension(300,70);
+ setJMenuBar(new MooMenu());
// setSize(bounds.width,bounds.height);
setLocation((Toolkit.getDefaultToolkit().getScreenSize().width / 2) - (bounds.width / 2), (Toolkit.getDefaultToolkit().getScreenSize().height / 2) - (bounds.height / 2));
// setResizable(false);
public void windowDeiconified(WindowEvent e) {}
public void windowActivated(WindowEvent e) {}
public void windowDeactivated(WindowEvent e) {}
-}
\ No newline at end of file
+}
{
// empty contructor that anropar the createMooMenu in the mainmethod
public MooMenu()
- {
- }
-
- public JMenuBar createMooMenu()
{
JMenuBar menubar = new JMenuBar();
menubar.add(createFileMenu());
menubar.add(createTrackMenu());
menubar.add(createNoteMenu());
menubar.add(createHelpMenu());
- return menubar;
}
// creates the filemenu