Package com.mxgraph.examples.swing.editor.EditorActions

Examples of com.mxgraph.examples.swing.editor.EditorActions.NewAction


    JMenu submenu = null;

    // Creates the file menu
    menu = add(new JMenu(mxResources.get("file")));

    menu.add(editor.bind(mxResources.get("new"), new NewAction(),
        "/com/mxgraph/examples/swing/images/new.gif"));
    menu.add(editor.bind(mxResources.get("openFile"), new OpenAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));
    menu.add(editor.bind(mxResources.get("importStencil"), new ImportAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));
View Full Code Here


    super(orientation);
    setBorder(BorderFactory.createCompoundBorder(BorderFactory
        .createEmptyBorder(3, 3, 3, 3), getBorder()));
    setFloatable(false);

    add(editor.bind("New", new NewAction(),
        "/com/mxgraph/examples/swing/images/new.gif"));
    add(editor.bind("Open", new OpenAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));
    add(editor.bind("Save", new SaveAction(false),
        "/com/mxgraph/examples/swing/images/save.gif"));
View Full Code Here

    JMenu submenu = null;

    // Creates the file menu
    menu = add(new JMenu(mxResources.get("file")));

    menu.add(editor.bind(mxResources.get("new"), new NewAction(),
        "/com/mxgraph/examples/swing/images/new.gif"));
    menu.add(editor.bind(mxResources.get("openFile"), new OpenAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));

    menu.addSeparator();
View Full Code Here

    super(orientation);
    setBorder(BorderFactory.createCompoundBorder(BorderFactory
        .createEmptyBorder(3, 3, 3, 3), getBorder()));
    setFloatable(false);

    add(editor.bind("New", new NewAction(),
        "/com/mxgraph/examples/swing/images/new.gif"));
    add(editor.bind("Open", new OpenAction(),
        "/com/mxgraph/examples/swing/images/open.gif"));
    add(editor.bind("Save", new SaveAction(false),
        "/com/mxgraph/examples/swing/images/save.gif"));
View Full Code Here

    JMenu submenu = null;

    // Creates the file menu
    menu = add(new JMenu(mxResources.get("file")));

    menu.add(editor.bind(mxResources.get("new"), new NewAction(), "/com/mxgraph/examples/swing/images/new.gif"));
    menu.add(editor.bind(mxResources.get("openFile"), new OpenAction(), "/com/mxgraph/examples/swing/images/open.gif"));
    menu.add(editor.bind(mxResources.get("importStencil"), new ImportAction(), "/com/mxgraph/examples/swing/images/open.gif"));

    menu.addSeparator();
View Full Code Here

TOP

Related Classes of com.mxgraph.examples.swing.editor.EditorActions.NewAction

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.