Package org.jdesktop.swingx.action

Examples of org.jdesktop.swingx.action.ActionManager.addAction()


        Icon iconValite = icons.getIcon("samples.validate");
        Action validateAction = new ValidateConfigurationAction("Validation",
                iconValite, samplesManagerModel);
        valiteButton = new JButton("Validation");
        valiteButton.setAction(validateAction);
        actionManager.addAction(validateAction);
        buttonPanel.add(valiteButton);

        // Initiate the button for reset
        Icon iconReset = icons.getIcon("samples.clearLine");
        Action resetAction = new ResetAction("Reset", iconReset, samplesManagerModel);
View Full Code Here


        buttonPanel.add(valiteButton);

        // Initiate the button for reset
        Icon iconReset = icons.getIcon("samples.clearLine");
        Action resetAction = new ResetAction("Reset", iconReset, samplesManagerModel);
        actionManager.addAction(resetAction);
        resetButton = new JButton("Reset");
        resetButton.setIcon(iconReset);
        resetButton.setAction(resetAction);
        buttonPanel.add(resetButton);
View Full Code Here

        for (int i = 0; i < positions.length; i++) {
            CellPosition cellPosition = positions[i];
            String cellName = cellPosition.name();
            JMenuItem add_menuItem = new JMenuItem(cellName);
            Action addSampleAction = new AddSampleAction(cellPosition, treePath);
            actionManager.addAction(addSampleAction);
            add_menuItem.setAction(addSampleAction);
            addMenu.add(add_menuItem);
        }

        popupMenu.add(addMenu);
View Full Code Here

        for (int i = 0; i < positions.length; i++) {
            CellPosition cellPosition = positions[i];
            String cellName = cellPosition.name();
            JMenuItem del_menuItem = new JMenuItem(cellName);
            Action deleteSampleAction = new DeleteSampleAction(cellPosition, treePath);
            actionManager.addAction(deleteSampleAction);
            del_menuItem.setAction(deleteSampleAction);
            deleteMenu.add(del_menuItem);
        }
        popupMenu.add(deleteMenu);
View Full Code Here

        for (int i = 0; i < positions.length; i++) {
            CellPosition cellPosition = positions[i];
            String cellName = cellPosition.name();
            JMenuItem mov_menuItem = new JMenuItem(cellName);
            Action moveSampleAction = new MoveSampleAction(cellPosition, treePath);
            actionManager.addAction(moveSampleAction);
            mov_menuItem.setAction(moveSampleAction);
            moveMenu.add(mov_menuItem);
        }
        popupMenu.add(moveMenu);
View Full Code Here

        // ----------------------------------------------------------------------
        // ---------------------------------
        Icon getPositionIcon = icons.getIcon("samples.getPosition");
        Action getPositionAction = new GetPositionAction("Get Position", getPositionIcon, treePath,
                treeTableModel);
        actionManager.addAction(getPositionAction);
        popupMenu.add(getPositionAction);
        // ----------------------------------------------------------------------
        // ---------------------------------
        //
        // Initiate the cleanLineMenu to clean the sample.
View Full Code Here

        // ---------------------------------
        Icon cleanLineIcon = icons.getIcon("samples.clearLine");

        Action cleanLineAction = new CleanLineAction("Clean Line", cleanLineIcon, treePath,
                treeTableModel);
        actionManager.addAction(cleanLineAction);
        popupMenu.add(cleanLineAction);

        return popupMenu;
    }
View Full Code Here

    // Add create batch button
    JButton createBatchButton = new JButton("Create Batch");
    Action createBatchAction = new CreateBatchAction();
    ActionManager actionManager = ActionManager.getInstance();
    actionManager.addAction(createBatchAction);
    createBatchButton.setAction(createBatchAction);
    createBatchButton.setPreferredSize(new Dimension(140, 25));
    JPanel buttonPanel = new JPanel();
    buttonPanel.add(createBatchButton);
    add(buttonPanel, BorderLayout.CENTER);
View Full Code Here

        Icon iconValite = icons.getIcon("samples.validate");
        Action validateAction = new ValidateConfigurationAction("Validation", iconValite,
                samplesManagerModel);
        valiteButton = new JButton("Validation");
        valiteButton.setAction(validateAction);
        actionManager.addAction(validateAction);
        buttonPanel.add(valiteButton);

        // Initiate the button for reset
        Icon iconReset = icons.getIcon("samples.clearLine");
        Action resetAction = new ResetAction("Reset", iconReset, samplesManagerModel);
View Full Code Here

        buttonPanel.add(valiteButton);

        // Initiate the button for reset
        Icon iconReset = icons.getIcon("samples.clearLine");
        Action resetAction = new ResetAction("Reset", iconReset, samplesManagerModel);
        actionManager.addAction(resetAction);
        resetButton = new JButton("Reset");
        resetButton.setIcon(iconReset);
        resetButton.setAction(resetAction);
        buttonPanel.add(resetButton);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.