Package javax.swing

Examples of javax.swing.JToolBar.addSeparator()


    if (Utilities.isDesktopSupported()) { // External Viewer
      ActionExternalViewer.addButton(
          toolbarButtons, getWiki(), page.getTitle(), false, true, true);
      ActionExternalViewer.addButton(
          toolbarButtons, getWiki(), page.getTitle(), ActionExternalViewer.ACTION_HISTORY, true, true);
      toolbarButtons.addSeparator();
    }
    ActionFullAnalysis.addButton(
        toolbarButtons, getWiki(), page.getTitle(), true, false, false);
    constraints.fill = GridBagConstraints.HORIZONTAL;
    constraints.gridwidth = 2;
View Full Code Here


    buttonMarkNeedHelp.addActionListener(EventHandler.create(
        ActionListener.class, this, "actionMarkBacklinkHelpNeeded"));
    toolbar.add(buttonMarkNeedHelp);
    buttonViewLink = ActionExternalViewer.addButton(
        toolbar, getWikipedia(), listLinks, false, true, true);
    toolbar.addSeparator();
    linkCount = new JLabel(GT._("Link count"));
    toolbar.add(linkCount);
    constraints.fill = GridBagConstraints.HORIZONTAL;
    constraints.weightx = 1;
    constraints.weighty = 0;
View Full Code Here

    JToolBar toolbarButtons = new JToolBar(SwingConstants.HORIZONTAL);
    toolbarButtons.setFloatable(false);
    toolbarButtons.setBorderPainted(false);

    addButtonOptions(toolbarButtons, true);
    toolbarButtons.addSeparator();

    buttonFirst = ActionOccurrence.addButton(
        toolbarButtons, getTextContents(), ActionOccurrence.Occurrence.FIRST, true, true);
    buttonPrevious = ActionOccurrence.addButton(
        toolbarButtons, getTextContents(), ActionOccurrence.Occurrence.PREVIOUS, true, true);
View Full Code Here

        toolbarButtons, getTextContents(), ActionOccurrence.Occurrence.PREVIOUS, true, true);
    buttonNext = ActionOccurrence.addButton(
        toolbarButtons, getTextContents(), ActionOccurrence.Occurrence.NEXT, true, true);
    buttonLast = ActionOccurrence.addButton(
        toolbarButtons, getTextContents(), ActionOccurrence.Occurrence.LAST, true, true);
    toolbarButtons.addSeparator();

    addButtonUndoRedo(toolbarButtons, true);
    buttonToc = createButtonToc(this, true);
    toolbarButtons.add(buttonToc);
    addChkSpelling(toolbarButtons, true);
View Full Code Here

    }
    addButtonRedirect(toolbarButtons);

    buttonWarning = ActionUpdateWarning.addButton(
        getParentComponent(), this, toolbarButtons, this, true, false);
    toolbarButtons.addSeparator();

    addButtonReload(toolbarButtons, true);
    buttonCheckArticle = ActionCheckArticle.addButton(
        getParentComponent(), toolbarButtons, getWikipedia(),
        getPageName(), getTextContents(), true);
View Full Code Here

    buttonView = ActionExternalViewer.addButton(
        toolbarButtons, getWikipedia(), getPageName(), false, true, false);
    buttonViewHistory = ActionExternalViewer.addButton(
        toolbarButtons, getWikipedia(), getPageName(),
        ActionExternalViewer.ACTION_HISTORY, true, false);
    toolbarButtons.addSeparator();
    buttonWatch = ActionWatchPage.addButton(
        getParentComponent(), toolbarButtons, getWikipedia(), getPageName(), true, false);
    addButtonDisambiguation(toolbarButtons, true);
    toolbarButtons.addSeparator();
    String[] elements = getConfiguration().getStringArray(WPCConfigurationString.LANG_TEMPLATE);
View Full Code Here

        ActionExternalViewer.ACTION_HISTORY, true, false);
    toolbarButtons.addSeparator();
    buttonWatch = ActionWatchPage.addButton(
        getParentComponent(), toolbarButtons, getWikipedia(), getPageName(), true, false);
    addButtonDisambiguation(toolbarButtons, true);
    toolbarButtons.addSeparator();
    String[] elements = getConfiguration().getStringArray(WPCConfigurationString.LANG_TEMPLATE);
    String langTemplateName = "lang";
    if ((elements != null) && (elements.length > 0)) {
      langTemplateName = elements[0];
    }
View Full Code Here

        "<html><b>(??)</b> \u21d2 <b>(" + getWikipedia().getSettings().getLanguage() + ")</b></html>", null);
    buttonTranslation.setToolTipText(GT._("Translation of an article copied from an other wiki"));
    buttonTranslation.addActionListener(EventHandler.create(
        ActionListener.class, this, "actionTranslate"));
    toolbarButtons.add(buttonTranslation);
    toolbarButtons.addSeparator();

    addLblLastModified(toolbarButtons);
    toolbarButtons.addSeparator();

    addLblEditProtectionLevel(toolbarButtons);
View Full Code Here

        ActionListener.class, this, "actionTranslate"));
    toolbarButtons.add(buttonTranslation);
    toolbarButtons.addSeparator();

    addLblLastModified(toolbarButtons);
    toolbarButtons.addSeparator();

    addLblEditProtectionLevel(toolbarButtons);
    constraints.fill = GridBagConstraints.HORIZONTAL;
    constraints.gridx = 0;
    constraints.weightx = 1;
View Full Code Here

        JToolBar toolBar = new JToolBar();
        toolBar.add(_buyBook);
        toolBar.add(_deliver);
        toolBar.add(_supply);
        Dimension d = new Dimension(40, 32);
        toolBar.addSeparator(d);
       
        toolBar.add(_viewConfig);
        toolBar.add(_viewDomain);
        toolBar.add(_viewSource);
        toolBar.add(_viewQuery);
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.