ApplicationContext applicationContext = new ClassPathXmlApplicationContext( "SpringDemo.spr.xml", SpringDemo.class );
rootNode = ( Node ) applicationContext.getBean( "menuNode" );
}
private void run() {
JMenuBarPresenter presenter = new JMenuBarPresenter();
JFrame frame = new JFrame();
frame.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );
frame.setJMenuBar( presenter.present( rootNode ) );
frame.pack();
frame.setSize( 800, 600 );
frame.setLocationRelativeTo( null );