Java JToolBar isToolBarButton(JComponent c)

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

Description

Returns true if the specified widget is in a toolbar.

License

Open Source License

Declaration

static boolean isToolBarButton(JComponent c) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    /**/*from w w w . ja va2  s.  c o m*/
     * Returns true if the specified widget is in a toolbar.
     */
    static boolean isToolBarButton(JComponent c) {
        return c.getParent() instanceof JToolBar;
    }
}

Related

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