Here you can find the source of isToolBarButton(JComponent c)
Parameter | Description |
---|---|
c | a parameter |
public static boolean isToolBarButton(JComponent c)
//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); } }