Package javax.swing

Examples of javax.swing.JComponent.paintImmediately()


                    Widget widget, Point point, Transferable transferable) {
                Image dragImage = getImageFromTransferable(transferable);
                JComponent view = getView();
                Graphics2D g2 = (Graphics2D) view.getGraphics();
                Rectangle visRect = view.getVisibleRect();
                view.paintImmediately(visRect.x, visRect.y, visRect.width, visRect.height);
                g2.drawImage(dragImage,
                        AffineTransform.getTranslateInstance(point.getLocation().getX(),
                        point.getLocation().getY()),
                        null);
                LayoutCalculator calc = UpdateNodeTask.getInstance().getLastScore().layoutCalculator;
View Full Code Here


    protected void paintTransparentFrame() {
        Dimension size = component.getComponent().getSize();
        if (component.getComponent() instanceof JComponent) {
            JComponent jc = (JComponent) component.getComponent();
            jc.paintImmediately(0, 0, size.width, size.height);
        }
        if (disposed)
            return;
        size = component.getSize();
        Point location = component.getLocation();
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.