Package java.awt

Examples of java.awt.Component.repaint()


                                final DocumentEvent event, final Shape shape) {
        if (change != null) {
            preferenceChanged(null, true, true);
            final Component c = getComponent();
            if (c != null) {
                c.repaint();
            }
        }
    }

    final int drawComposedText(final Graphics g, final Color color,
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

                // if we could not obtain the lock, repaint the area
                // that was supposed to be swapped, and no-op this swap
                final Component target = (Component)sd.getPeer().getTarget();
                SunToolkit.executeOnEventHandlerThread(target, new Runnable() {
                    public void run() {
                        target.repaint(x1, y1, x2, y2);
                    }
                });
                return;
            }
        } else {
View Full Code Here

        // we don't want to call user code on our priveleged
        // thread, delegate to EDT
        final Component target = (Component)peer.getTarget();
        SunToolkit.executeOnEventHandlerThread(target, new Runnable() {
            public void run() {
                target.repaint();
            }
        });
    }

    /**
 
View Full Code Here

                                final DocumentEvent event, final Shape shape) {
        if (change != null) {
            preferenceChanged(null, true, true);
            final Component c = getComponent();
            if (c != null) {
                c.repaint();
            }
        }
    }

    final int drawComposedText(final Graphics g, final Color color,
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

                                final DocumentEvent event, final Shape shape) {
        if (change != null) {
            preferenceChanged(null, true, true);
            final Component c = getComponent();
            if (c != null) {
                c.repaint();
            }
        }
    }

    final int drawComposedText(final Graphics g, final Color color,
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

                long total = runtime.totalMemory();
                Iterator it = components.iterator();
                while (it.hasNext()) {
                    Component c = (Component)it.next();
                    ((MemoryChangeListener)c).memoryStateChanged(total, free);
                    c.repaint();
                }
                synchronized (this) { inEventQueue = false; }
            }
        }
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.