Package org.antlr.works.utils

Examples of org.antlr.works.utils.Toolbar


    public DBControlPanel(DebuggerTab debuggerTab) {
        super(new BorderLayout());

        this.debuggerTab = debuggerTab;

        Toolbar box = Toolbar.createHorizontalToolbar();
        box.addElement(stopButton = createStopButton());
        box.addGroupSeparator();
        box.addElement(goToStartButton = createGoToStartButton());
        box.addElement(backButton = createStepBackButton());
        box.addElement(forwardButton = createStepForwardButton());
        box.addElement(stepOverButton = createStepOverButton());
        box.addElement(fastForwardButton = createFastForwardButton());
        box.addElement(goToEndButton = createGoToEndButton());
        box.addGroupSeparator();
        createBreakEvents(box);
        box.addElement(Box.createHorizontalGlue());
        box.addElement(createInfoLabelPanel());

        add(box, BorderLayout.CENTER);
    }
View Full Code Here


        });
        return button;
    }

    private Container createControlPane() {
        Toolbar box = Toolbar.createHorizontalToolbar();

        box.addElement(new JLabel("Zoom"));
        box.addElement(createFactorSlider());

        //box.addElement(new JLabel("Line space"));
        //box.addElement(createLineSpaceSlider());

        //box.addElement(new JLabel("Epsilon width"));
        //box.addElement(createEpsilonWidthSlider());

        //box.add(createDrawNodeButton());
        //box.add(createDrawDimensionButton());
        box.addElement(new JLabel("Show:"));
        box.addElement(createShowNFAButton());
        box.addElement(createShowRuleNameButton());
        //box.add(createUseCacheButton());

        //box.setPreferredSize(new Dimension(160, 0));
        return box;
    }
View Full Code Here

        JScrollPane scrollPane = new JScrollPane(tree);
        scrollPane.setWheelScrollingEnabled(true);
        scrollPane.setBackground(Color.white);

        Toolbar box = Toolbar.createHorizontalToolbar();
        box.addElement(createExpandAllButton());
        box.addElement(createCollapseAllButton());
        box.add(Box.createHorizontalGlue());
        box.addElement(createDisplayAsGraphButton());
        //if(XJSystem.isMacOS())
        //    box.add(Box.createHorizontalStrut(15));

        panel.add(scrollPane, BorderLayout.CENTER);
        panel.add(box, BorderLayout.SOUTH);
View Full Code Here

        treeGraphView.addMouseMotionListener(adapter);

        graphScrollPane = new JScrollPane(treeGraphView);
        graphScrollPane.setWheelScrollingEnabled(true);

        Toolbar box = Toolbar.createHorizontalToolbar();
        box.addElement(new JLabel("Zoom"));
        box.addElement(createZoomSlider());
        box.add(Box.createHorizontalGlue());
        box.addElement(createDisplayAsListButton());
        //if(XJSystem.isMacOS())
        //    box.add(Box.createHorizontalStrut(15));

        panel.add(graphScrollPane, BorderLayout.CENTER);
        panel.add(box, BorderLayout.SOUTH);
View Full Code Here

        window.registerUndo(null, textPane);
    }

    public Box createControlPanel() {
        Toolbar box = Toolbar.createHorizontalToolbar();
        box.addElement(createRunButton());
        box.addElement(createRulesPopUp());
        box.addGroupSeparator();
        box.addElement(new JLabel("Line Endings:"));
        box.addElement(createEOLCombo());
        box.addGroupSeparator();
        createTokensToIgnoreField(box);
        return box;
    }
View Full Code Here

    public ConsoleTab(GrammarWindow window) {
        super(window);

        panel = new JPanel(new BorderLayout());
        Toolbar box = Toolbar.createHorizontalToolbar();

        JButton clear = new JButton("Clear All");
        clear.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                clear();
            }
        });
        box.addElement(clear);
        box.add(Box.createHorizontalGlue());

        panel.add(createTextArea(), BorderLayout.CENTER);
        panel.add(box, BorderLayout.SOUTH);
    }
View Full Code Here

TOP

Related Classes of org.antlr.works.utils.Toolbar

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.