Package com.cedarsoft.presenter

Examples of com.cedarsoft.presenter.JMenuBarPresenter


    rootNode.addChild( new DefaultNode( "customEditMenu", Lookups.dynamicLookup( new EditFileAction(), new MySpecialEditMenuPresenter() ) ) );
  }

  protected void run() {
    JMenuBarPresenter presenter = new JMenuBarPresenter();
    JFrame frame = createFrame();
    frame.setJMenuBar( presenter.present( rootNode ) );
    frame.setVisible( true );
  }
View Full Code Here


    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 );
View Full Code Here

TOP

Related Classes of com.cedarsoft.presenter.JMenuBarPresenter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.