Package java.awt

Examples of java.awt.Component.repaint()


            // environment dictates that should happen.

            // ((MapBean)p).repaint(); to ->
            ((MapBean) p).repaint(this);
        } else if (p != null) {
            p.repaint(tm, x, y, width, height);
        } else {
            super.repaint(tm, x, y, width, height);
        }
    }
View Full Code Here


    }

    private void updateRoot() {
        final Component root = getComponentRoot(this);
        SwingUtilities.updateComponentTreeUI(root);
        root.repaint();
    }

    private static Component getComponentRoot(final Component comp) {
        if (null == comp.getParent())
            return comp;
View Full Code Here

      comp.doLayout();
      glassPlane.add(comp);
      comp.addFocusListener(this);
      glassPlane.validate();
      glassPlane.repaint();
      comp.repaint();
      iEditor.setFocus();
      currentEditor = new EditorAdapter(adapter, iEditor);
    }
  }
View Full Code Here

                    rect.height -= viewOffset;
                } else {
                    rect.x      += viewOffset;
                    rect.width  -= viewOffset;
                }
                component.repaint(rect.x, rect.y, rect.width, rect.height);
            }
        }
    }

    protected int getOffset(final int axis, final int childIndex) {
View Full Code Here

            }

            if (alloc != null) {
                Component container = fv.getComponent();
                if (container != null) {
                    container.repaint(alloc.x, alloc.y,
                                      alloc.width, alloc.height);
                }
            }
        }
View Full Code Here

        // .getClientProperty(PREV_COMPONENT_STATE))
        // .name());
        Component toRepaint = componentForRepaint
            .getComponentForRepaint();
        if (toRepaint != null) {
          toRepaint.repaint();
        }
      }

      /*
       * (non-Javadoc)
 
View Full Code Here

            // System.out.println("Repainted "
            // + componentToRepaint.getClass()
            // .getSimpleName() + " on "
            // + fadeKind.toString() + " end");
            if (forRepaint != null) {
              forRepaint.repaint();
            }
          }
        });
      }
View Full Code Here

                        SubstanceCoreUtilities.IS_COVERED_BY_LIGHTWEIGHT_POPUPS,
                        null);
              }
            }
            if (forRepaint != null) {
              forRepaint.repaint();
            }
          }
        });
      }
View Full Code Here

    long total = runtime.totalMemory();
    Iterator it = components.iterator();
    while (it.hasNext()) {
        Component c = (Component)it.next();
        ((MemoryChangeListener)c).memoryStateChanged(total, free);
        c.repaint();
    }
                try {
                    sleep(timeout);
                    synchronized(this) {
                        while (suspended) {
View Full Code Here

       */
  public void paintAncestors(){
    Component C=this;
   
    while(C.getParent()!=null){
      C.repaint();
      C=C.getParent();
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.