Package java.awt

Examples of java.awt.Container.repaint()


        Container parent = block.getParent();
        if (parent != null) {
            parent.remove(block);
            parent.validate();
            parent.repaint();
            block.setParentWidget(null);
        }

        //fire to workspace that block was removed
        //DO FIRE AN EVENT IF BLOCK IS REMOVED BY USER!!!!
View Full Code Here


 
  protected void removePanel () {
    Container parent = this.getParent();
    parent.remove(this);
    parent.validate();
    parent.repaint();
  }

  public void setName(String name){
    this.name = name;
    nameLabel.setText(name);
View Full Code Here

        cardPanel.restoreViews();
       
        dockable.dockedContainer.restoreContent( dockable );

        parentContainer.remove( this );
        parentContainer.repaint();

        if ( parentContainer.getComponentCount() == 0 )
          ((JComponent)parentContainer).revalidate();
      }
    }
View Full Code Here

        help.setCursor(cursor);

        // PENDING(prinz) remove this hack when
        // automatic validation is activated.
        Container parent = help.getParent();
        parent.repaint();
      } else {
        Document doc = help.getDocument();
        try {
          help.setPage(url);
        } catch (Exception ioe) {
View Full Code Here

        html.setCursor(cursor);

        // remove this hack when automatic validation is
        // activated.
        Container parent = html.getParent();
        parent.repaint();
      } else
      {
        Document doc = html.getDocument();
        try
        {
View Full Code Here

    /** Repaint this component. */
    public void alloyRepaint() {
        Container c=getParent();
        while(c!=null) { if (c instanceof JViewport) break; else c=c.getParent(); }
        setSize((int)(graph.getTotalWidth()*scale), (int)(graph.getTotalHeight()*scale));
        if (c!=null) { c.invalidate(); c.repaint(); c.validate(); } else { invalidate(); repaint(); validate(); }
    }

    /** Construct a GraphViewer that displays the given graph. */
    public GraphViewer(final Graph graph) {
        OurUtil.make(this, BLACK, WHITE, new EmptyBorder(0,0,0,0));
View Full Code Here

          embeddedPanel.isCrossWindowReparenting = true;
          nativeComponentWrapper.storeInHiddenParent();
          Container oldParent = embeddedPanel.getParent();
          oldParent.remove(embeddedPanel);
          UIUtils.revalidate(oldParent);
          oldParent.repaint();
          layeredPane.setLayer(embeddedPanel, Integer.MIN_VALUE);
          layeredPane.add(embeddedPanel);
          nativeComponentWrapper.restoreFromHiddenParent();
          embeddedPanel.isCrossWindowReparenting = false;
          UIUtils.revalidate(layeredPane);
View Full Code Here

    if(parent != null) {
      panel.isRemovingFromParent = true;
      parent.remove(panel);
      parent.invalidate();
      parent.validate();
      parent.repaint();
    }
  }

  @Override
  public Dimension getPreferredSize() {
View Full Code Here

      if(layeredPane != oldLayeredPane) {
        nativeComponentWrapper.storeInHiddenParent();
        Container oldParent = embeddedPanel.getParent();
        oldParent.remove(embeddedPanel);
        UIUtils.revalidate(oldParent);
        oldParent.repaint();
        layeredPane.setLayer(embeddedPanel, Integer.MIN_VALUE);
        layeredPane.add(embeddedPanel);
        nativeComponentWrapper.restoreFromHiddenParent();
        UIUtils.revalidate(layeredPane);
        layeredPane.repaint();
View Full Code Here

          } catch(Throwable e) {
            // If it does not work, remain silent as it may not be a problem depending on the VM
          }
        }
        oldParent.revalidate();
        oldParent.repaint();
      }
      revalidate();
      repaint();
      embeddedPanel.setVisible(true);
    }
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.