Lines Matching defs:JComponent

71  * To use a component that inherits from <code>JComponent</code>,
85 * The <code>JComponent</code> class provides:
114 * <code>JComponent</code> contains all of the methods in the
118 * that extend <code>JComponent</code>.
123 * with any object that descends from <code>JComponent</code>.
135 * <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/jcomponent.html">The JComponent Class</a>.
137 * <code>JComponent</code> and its subclasses document default values
139 * default row height as 16. Each <code>JComponent</code> subclass
144 * <code>JComponent</code> that created it. For example, a custom
183 public abstract class JComponent extends Container implements Serializable,
199 * Keys to use for forward focus traversal when the JComponent is
205 * Keys to use for backward focus traversal when the JComponent is
222 * JComponent the InputVerifier is running for. That is, if
239 * Backing store for JComponent properties and listeners
299 * The key used by <code>JComponent</code> to access keyboard bindings.
373 private static final String defaultLocale = "JComponent.defaultLocale";
398 if (!JComponent.isComponentObtainingGraphicsFrom(root)) {
422 synchronized(JComponent.class) {
438 synchronized(JComponent.class) {
475 * The default value for this is false, but some <code>JComponent</code>
476 * subclasses that are implemented as a number of <code>JComponent</code>s
505 * Sets the <code>JPopupMenu</code> for this <code>JComponent</code>.
559 if(parent instanceof JComponent) {
560 return ((JComponent)parent).getComponentPopupMenu();
576 * Default <code>JComponent</code> constructor. This constructor does
581 * <code>JComponent.getDefaultLocale</code>.
585 public JComponent() {
600 super.setLocale( JComponent.getDefaultLocale() );
606 * <code>JComponent</code> subclasses must override this method
623 * <code>JComponent</code> subclasses generally override this method
631 * Additionally <code>JComponent</code> subclasses must provide a
702 * call this method. Subclasses of <code>JComponent</code> that support
808 (paintingChild instanceof JComponent) &&
836 final boolean isJComponent = comp instanceof JComponent;
877 ((JComponent)comp).setFlag(
882 ((JComponent)comp).setFlag(
915 ((JComponent)comp).setFlag(
917 ((JComponent)comp).setFlag(
1027 if(getParent() != null && !(getParent() instanceof JComponent)) {
1104 if (component instanceof JComponent &&
1105 ((JComponent)component).getFlag(ANCESTOR_USING_BUFFER)) {
1114 JComponent jparent;
1118 if(parent instanceof JComponent) {
1119 jparent = (JComponent) parent;
1298 * Changes this <code>JComponent</code>'s focus traversal keys to
1301 * of this JComponent when computing a focus traversal cycle.
1361 * <code>JComponent</code>'s focus traversal cycle by unconditionally
1363 * <code>Component</code> in the cycle, and this <code>JComponent</code>
1368 * <code>JComponent</code> in the focus traversal cycle
1395 * <code>JComponent</code>.
1398 * <code>JComponent</code> in the focus traversal cycle, or
1410 * Provides a hint as to whether or not this <code>JComponent</code>
1416 * not want a mouse press on a <code>JComponent</code> to steal focus,
1417 * but did want the <code>JComponent</code> to be traversable via the
1418 * keyboard. If you do not want this <code>JComponent</code> focusable at
1428 * <code>JComponent</code> to be focusable or not
1437 * Returns <code>true</code> if this <code>JComponent</code> should
1771 * that inherits from <code>JComponent</code>, the look and
2015 * <code>JComponent</code> or one of its parents.
2396 throw new IllegalArgumentException("condition must be one of JComponent.WHEN_IN_FOCUSED_WINDOW, JComponent.WHEN_FOCUSED or JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT");
2460 * <li>JComponent.FOCUS_INPUTMAP_CREATED
2461 * <li>JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
2462 * <li>JComponent.WHEN_IN_FOCUSED_WINDOW
2508 throw new IllegalArgumentException("condition must be one of JComponent.WHEN_IN_FOCUSED_WINDOW, JComponent.WHEN_FOCUSED or JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT");
2600 * Requests focus on this <code>JComponent</code>'s
2602 * If this <code>JComponent</code> is a focus cycle root, then its
2604 * <code>FocusTraversalPolicy</code> of this <code>JComponent</code>'s
2709 * by subclasses of <code>JComponent</code> or
2711 * <code>JComponent</code> must override
2759 * Returns the default locale used to initialize each JComponent's
2779 JComponent.setDefaultLocale( l );
2786 * Sets the default locale used to initialize each JComponent's locale
2859 * <li>JComponent.WHEN_FOCUSED
2860 * <li>JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
2861 * <li>JComponent.WHEN_IN_FOCUSED_WINDOW
2935 if(parent instanceof JComponent) {
2936 if(ksE != null && ((JComponent)parent).processKeyBinding(ksE, e,
2939 if(((JComponent)parent).processKeyBinding(ks, e,
2951 JComponent.processKeyBindingsForAllComponents(e,parent,pressed)){
2959 * JComponent in this window.
2962 return JComponent.processKeyBindingsForAllComponents(e,parent,pressed);
3081 * <code>JComponent</code>'s parent. Components that can service
3094 !(parent instanceof JComponent) &&
3107 ((JComponent)parent).scrollRectToVisible(aRect);
3473 JComponent.KeyboardState.class;
3559 if ((to == null) || !(to instanceof JComponent)) {
3563 if ((from == null) || !(from instanceof JComponent)) {
3567 JComponent target = (JComponent) to;
3572 JComponent jFocusOwner = (JComponent)from;
3645 * <code>JComponent</code>.
3651 * <code>JComponent</code>. The method implemented by this base
3652 * class returns null. Classes that extend <code>JComponent</code>
3657 * <code>JComponent</code>
3664 * Inner class of JComponent used to provide default support for
3746 JComponent.this.addFocusListener(accessibleFocusHandler);
3750 JComponent.this.addContainerListener(accessibleContainerHandler);
3764 JComponent.this.removeFocusListener(accessibleFocusHandler);
3918 if (JComponent.this.isOpaque()) {
3964 return JComponent.this.getToolTipText();
3975 Border border = JComponent.this.getBorder();
4058 * scale extensions to JComponent nor should be it considered an
4351 * The default value of this property is false for <code>JComponent</code>.
4353 * <code>JComponent</code> subclasses (such as <code>JButton</code> and
4375 * <code>JComponent</code> is opaque if
4376 * <code>JComponent.isOpaque()</code> returns true, other lightweight
4402 if(child instanceof JComponent) {
4403 // System.out.println("A) checking opaque: " + ((JComponent)child).isOpaque() + " " + child);
4675 * upon this <code>JComponent</code>.
4686 * <code>JComponent</code> <code>c</code>
4864 synchronized(JComponent.this) {
4897 * common case. <code>JComponent</code> subclasses that can't make this
4913 * the {@link JComponent#paintImmediately(int, int, int, int)} method of
4916 * {@code JComponent} subclasses that need to be painted when any of their
4955 JComponent paintingOigin = SwingUtilities.getPaintingOrigin(this);
4973 if(!(c instanceof JComponent)) {
4977 if(c instanceof JComponent) {
4978 ((JComponent)c)._paintImmediately(x,y,w,h);
5020 JComponent bufferedComponent = null;
5021 JComponent paintingComponent = this;
5056 JComponent jc = (c instanceof JComponent) ? (JComponent)c :
5154 if(comp instanceof JComponent) {
5155 ((JComponent)comp).setPaintingChild(path.get(i-1));
5192 if(comp instanceof JComponent) {
5193 ((JComponent)comp).setPaintingChild(null);
5255 if (sibling instanceof JComponent) {
5312 // classes outside of the package below JComponent (e.g., JTextArea).
5313 static void setWriteObjCounter(JComponent comp, byte count) {
5317 static byte getWriteObjCounter(JComponent comp) {
5364 byte count = JComponent.getWriteObjCounter(this);
5365 JComponent.setWriteObjCounter(this, (byte)(count + 1));
5381 ToolTipManager.sharedInstance().unregisterComponent(JComponent.this);
5388 * one <code>JComponent</code>) has been read.
5403 private final Vector<JComponent> roots = new Vector<JComponent>(1);
5419 for (JComponent root : roots) {
5432 * @param c the <code>JComponent</code> to add
5434 private void registerComponent(JComponent c)
5439 for (JComponent root : roots) {
5452 JComponent root = roots.elementAt(i);
5479 * this is the first call to JComponent.readObject() for this
5512 * Before writing a <code>JComponent</code> to an
5515 * the UI before any of the <code>JComponent</code>'s children
5518 * <code>JComponent</code> subclass has been been stored.
5525 byte count = JComponent.getWriteObjCounter(this);
5526 JComponent.setWriteObjCounter(this, --count);
5536 * Returns a string representation of this <code>JComponent</code>.
5543 * @return a string representation of this <code>JComponent</code>