Package com.cburch.logisim.util

Examples of com.cburch.logisim.util.CustomAction


        //Zooming with CTRL+/-
        InputMap im = this.getInputMap(ZoomControl.WHEN_IN_FOCUSED_WINDOW);
        ActionMap am = this.getActionMap();
        int mask = getToolkit().getMenuShortcutKeyMask();
        im.put(KeyStroke.getKeyStroke(KeyEvent.VK_EQUALS, mask), "CTRL+");
        am.put("CTRL+", new CustomAction("CTRL+", this));
        im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ADD, mask), "CTRL+");
        am.put("CTRL+", new CustomAction("CTRL+", this));
        im.put(KeyStroke.getKeyStroke(KeyEvent.VK_MINUS, mask), "CTRL-");
        am.put("CTRL-", new CustomAction("CTRL-", this));
        im.put(KeyStroke.getKeyStroke(KeyEvent.VK_SUBTRACT, mask), "CTRL-");
        am.put("CTRL-", new CustomAction("CTRL-", this));
       
        this.add(spinner, BorderLayout.CENTER);

        grid = new GridIcon();
        this.add(grid, BorderLayout.EAST);
View Full Code Here


        ticksEnabled.setAccelerator(KeyStroke.getKeyStroke(
                KeyEvent.VK_K, menuMask));
        InputMap im = this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
        ActionMap am = this.getActionMap();
        im.put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), "Space");
        am.put("Space", new CustomAction("Space", this));
       
        ButtonGroup bgroup = new ButtonGroup();
        for (int i = 0; i < tickFreqs.length; i++) {
            bgroup.add(tickFreqs[i]);
            tickFreq.add(tickFreqs[i]);
View Full Code Here

TOP

Related Classes of com.cburch.logisim.util.CustomAction

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.