From: Hendrik <nh...@us...> - 2009-08-25 20:33:12
|
Update of /cvsroot/arianne/marboard/src/net/sf/arianne/marboard/client/gui In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv15573/src/net/sf/arianne/marboard/client/gui Modified Files: MainWindow.java Log Message: added a menu bar Index: MainWindow.java =================================================================== RCS file: /cvsroot/arianne/marboard/src/net/sf/arianne/marboard/client/gui/MainWindow.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** MainWindow.java 23 Aug 2009 21:29:45 -0000 1.8 --- MainWindow.java 25 Aug 2009 20:33:03 -0000 1.9 *************** *** 9,12 **** --- 9,13 ---- import marauroa.client.ClientFramework; import net.sf.arianne.marboard.client.core.CurrentBoard; + import net.sf.arianne.marboard.client.gui.menu.MenuBuilder; import org.apache.log4j.Logger; *************** *** 45,57 **** frame.setIconImage(new ImageIcon(getClass().getResource("marboard-icon.png")).getImage()); - frame.setSize(new Dimension(640, 440)); - frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); frame.addWindowListener(new WindowEventHandler(this)); ! whiteBoard = new WhiteBoard(board); frame.setLayout(new BorderLayout()); frame.add(whiteBoard.createCanvas(frame.getWidth(), frame.getHeight()), BorderLayout.CENTER); frame.setVisible(true); } --- 46,60 ---- frame.setIconImage(new ImageIcon(getClass().getResource("marboard-icon.png")).getImage()); frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); frame.addWindowListener(new WindowEventHandler(this)); ! frame.setSize(new Dimension(640, 440)); frame.setLayout(new BorderLayout()); + + whiteBoard = new WhiteBoard(board); frame.add(whiteBoard.createCanvas(frame.getWidth(), frame.getHeight()), BorderLayout.CENTER); + frame.setJMenuBar(new MenuBuilder(this).create()); + frame.setVisible(true); } |