Java Code Examples for javax.swing.JComponent#setInheritsPopupMenu()
The following examples show how to use
javax.swing.JComponent#setInheritsPopupMenu() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jdk1.8-source-analysis File: ColorChooserPanel.java License: Apache License 2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 2
Source Project: dragonwell8_jdk File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 3
Source Project: TencentKona-8 File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 4
Source Project: jdk8u60 File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 5
Source Project: JDKSourceCode1.8 File: ColorChooserPanel.java License: MIT License | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 6
Source Project: openjdk-jdk8u File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 7
Source Project: openjdk-jdk8u-backup File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 8
Source Project: Bytecoder File: ColorChooserPanel.java License: Apache License 2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 9
Source Project: openjdk-jdk9 File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 10
Source Project: jdk8u-jdk File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 11
Source Project: Java8CN File: ColorChooserPanel.java License: Apache License 2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 12
Source Project: hottub File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 13
Source Project: openjdk-8-source File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 14
Source Project: openjdk-8 File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 15
Source Project: jdk8u_jdk File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 16
Source Project: jdk8u-jdk File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }
Example 17
Source Project: jdk8u-dev-jdk File: ColorChooserPanel.java License: GNU General Public License v2.0 | 5 votes |
/** * Allows to show context popup for all components recursively. * * @param component the root component of the tree * @param value whether or not the popup menu is inherited */ private static void setInheritsPopupMenu(JComponent component, boolean value) { component.setInheritsPopupMenu(value); for (Object object : component.getComponents()) { if (object instanceof JComponent) { setInheritsPopupMenu((JComponent) object, value); } } }