Package javax.swing

Examples of javax.swing.JToolBar.addSeparator()


        fixedTools.add(m_copyB);
        fixedTools.add(m_deleteB);
        fixedTools.add(m_pasteB);
        fixedTools.add(m_undoB);
        fixedTools.add(m_noteB);
        fixedTools.addSeparator();
        fixedTools.add(m_snapToGridB);     
        fixedTools.addSeparator();
        fixedTools.add(m_newB);
        fixedTools.add(m_saveB);
        fixedTools.add(m_saveBB);
View Full Code Here


        fixedTools.add(m_pasteB);
        fixedTools.add(m_undoB);
        fixedTools.add(m_noteB);
        fixedTools.addSeparator();
        fixedTools.add(m_snapToGridB);     
        fixedTools.addSeparator();
        fixedTools.add(m_newB);
        fixedTools.add(m_saveB);
        fixedTools.add(m_saveBB);
        fixedTools.add(m_loadB);
        fixedTools.add(m_templatesB);
View Full Code Here

        fixedTools.add(m_newB);
        fixedTools.add(m_saveB);
        fixedTools.add(m_saveBB);
        fixedTools.add(m_loadB);
        fixedTools.add(m_templatesB);
        fixedTools.addSeparator();
        fixedTools.add(m_togglePerspectivesB);

        fixedTools.add(m_helpB);
        Dimension d = m_undoB.getPreferredSize();
        Dimension d2 = fixedTools.getMinimumSize();
View Full Code Here

        toolBar.add(refreshAction);
        watchToggle = new JToggleButton();
        watchToggle.setAction(watchAction);
        watchToggle.setText("");
        toolBar.add(watchToggle);
        toolBar.addSeparator();
        zoomComboBox = new JComboBox<String>(new String[] {"1%", "5%", "10%", "50%", "100%", "200%", "300%", "500%", "1000%", "5000%"});
        zoomComboBox.setSelectedIndex(2);
        zoomComboBox.setAction(zoomAction);
        zoomComboBox.setEditable(true);
        zoomComboBox.setMaximumSize(zoomComboBox.getPreferredSize());
View Full Code Here

        zoomComboBox.setSelectedIndex(2);
        zoomComboBox.setAction(zoomAction);
        zoomComboBox.setEditable(true);
        zoomComboBox.setMaximumSize(zoomComboBox.getPreferredSize());
        toolBar.add(zoomComboBox);
        toolBar.addSeparator();
        toolBar.add(aboutAction);
        return toolBar;
    }

    /**
 
View Full Code Here

        panel.add(statusLabelPanel, BorderLayout.SOUTH);
       
        toolBar = new JToolBar();
        toolBar.add(connectAction);
        toolBar.add(disconnectAction);
        toolBar.addSeparator();
        toolBar.add(clearAction);
        toolBar.add(showDetailsAction);
        getContentPane().add(toolBar, BorderLayout.NORTH);
       
        JMenuBar mb = new JMenuBar();
View Full Code Here

    buttonGroup.add(designerBtn);
    buttonGroup.add(templateBtn);
    buttonGroup.add(viewBtn);

    toolBar.add(homeBtn);
    toolBar.addSeparator();
    toolBar.add(generatorBtn);
    toolBar.add(designerBtn);
    toolBar.addSeparator();
    toolBar.add(templateBtn);
    toolBar.add(viewBtn);
View Full Code Here

    toolBar.add(homeBtn);
    toolBar.addSeparator();
    toolBar.add(generatorBtn);
    toolBar.add(designerBtn);
    toolBar.addSeparator();
    toolBar.add(templateBtn);
    toolBar.add(viewBtn);
    toolBar.add(logoLabel);
   
    toolBar.setComponentPopupMenu(buildPopupMenu());
View Full Code Here

    tb.add(new MyAction("Edit",Utils.createImageIcon("Edit24.gif","Edit icon"),"EDIT_GAME"));
    ((JComponent)(tb.getComponentAtIndex(position))).setToolTipText(rb.getString("Edit the description and clues"));
    position++;

    tb.addSeparator();
    position++;
   
    tb.add(new MyAction("Load game",Utils.createImageIcon("Open24.gif","Load icon"),"LOAD_GAME"));
    ((JComponent)(tb.getComponentAtIndex(position))).setToolTipText(rb.getString("Load a puzzle from file"));
    position++;
View Full Code Here

    tb.add(new MyAction("Save game",Utils.createImageIcon("Save24.gif","Save icon"),"SAVE_GAME"));
    ((JComponent)(tb.getComponentAtIndex(position))).setToolTipText(rb.getString("Save the puzzle to file"));
    position++;
   
    tb.addSeparator();
    position++;
   
    undoButton=tb.add(new MyAction("Undo",Utils.createImageIcon("Undo24.gif","Undo icon"),"UNDO_MOVE"));
    undoButton.setToolTipText(rb.getString("Undo move"));
     position++;
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.