Java JToolBar addToolbar(JPanel panel, JToolBar bar)

Here you can find the source of addToolbar(JPanel panel, JToolBar bar)

Description

add Toolbar

License

Open Source License

Declaration

public static void addToolbar(JPanel panel, JToolBar bar) 

Method Source Code


//package com.java2s;
import java.awt.BorderLayout;

import javax.swing.JPanel;

import javax.swing.JToolBar;

public class Main {
    public static void addToolbar(JPanel panel, JToolBar bar) {
        panel.add(bar, BorderLayout.PAGE_START);
    }// w ww. ja  v a 2s  .c  o m
}

Related

  1. addButton(Container component, String text, Icon icon, ActionListener listener, String actionCommand, int mnemonic, String toolTip)
  2. addButton(Container container, String label, int mnemonic, String tooltip, String placement, boolean debug)
  3. addRadioButton(Container container, String label, int mnemonic, String tooltip, String placement, boolean debug)
  4. addToolBarButton(JToolBar toolbar, Action action, String tooltip, Icon icon)
  5. addToolBarButton(JToolBar toolbar, Action action, String tooltip, Icon icon, String lbl)
  6. addToolItems(JToolBar toolBar, JComponent... items)
  7. buildToolbar(final JToolBar toolbar, final List components)