Java JToolBar isToolBarButton(JComponent c)

Here you can find the source of isToolBarButton(JComponent c)

Description

is Tool Bar Button

License

Open Source License

Parameter

Parameter Description
c a parameter

Declaration

public static boolean isToolBarButton(JComponent c) 

Method Source Code

//package com.java2s;

import javax.swing.JComponent;
import javax.swing.JToolBar;

public class Main {
    /**//ww w . jav  a2 s  . com
     * @param c
     * @return
     */
    public static boolean isToolBarButton(JComponent c) {
        return (c.getParent() instanceof JToolBar);
    }
}

Related

  1. getToolbarButton(JToolBar toolbar, Action action)
  2. getToolBarFill(int orientation)
  3. getToolbarOrientation(String location)
  4. hideChildButtonsWithTooltip(Container parent, String tooltip)
  5. initIconButton(AbstractButton button, String toolTip)
  6. isToolBarButton(JComponent c)
  7. makeToolButton(URL iconURL, String cmd, String tooltip, String alt, ActionListener listener)
  8. resizeToolBarButtons(JComponent toolbar)
  9. searchFakeToolBarRecursive(Container c)