Package java.awt

Examples of java.awt.Container.repaint()


          container.add(panel, BorderLayout.CENTER);
          panel.setVisible(true);
          container.setVisible(true);
          frame.setVisible(true);
          panel.repaint();
          container.repaint();
          frame.repaint();
        }
      });
    }
  }
View Full Code Here


        // Provokes a repaint when the BoundedRangeModel's values change
        // (which is what the RI does).
        horizontalVisibility.addChangeListener(new ChangeListener(){
          public void stateChanged(ChangeEvent event) {
            c.repaint();
          };
        });

        // It turned out that the span calculated at this point is wrong
        // and needs to be recalculated (e.g. a different font setting is
View Full Code Here

    Container oldParent = toolBar.getParent();

    oldParent.remove(toolBar);
    oldParent.doLayout();
    oldParent.repaint();

    Container newParent;

    if (aoc == -1)
      newParent = ((RootPaneContainer) floatFrame).getContentPane();
View Full Code Here

        floatFrame.show();
      }

    newParent.invalidate();
    newParent.validate();
    newParent.repaint();
  }

  /**
   * This method returns the docking color.
   *
 
View Full Code Here

        setPreferredSize(new Dimension(newWidth, (int) getPreferredSize().getHeight()));
        setMaximumSize(new Dimension(newWidth, (int) getMaximumSize().getHeight()));
        final Container p = getParent();
        if (p != null) {
            p.validate();
            p.repaint();
        }
    }

    /** Sets the height of the widget. */
    public final void setHeight(final int newHeight) {
View Full Code Here

            label.setMaximumSize(new Dimension((int) label.getMaximumSize().getWidth(), newHeight));
        }
        final Container p = getParent();
        if (p != null) {
            p.validate();
            p.repaint();
        }
    }

    final JComponent getJComponent() {
        return component;
View Full Code Here

                ((Page) w).reset();
            }
            if (parent != null) {
                parent.remove(w.getJComponent());
                parent.validate();
                parent.repaint();
            }
        }

        //We now reset, the blockcanvas, the factory, and the renderableblocks
        blockCanvas.reset();
View Full Code Here

            if (arrow.getParent() == null) {
                parentContainer.add(arrow);
            }
            parentContainer.validate();
            parentContainer.repaint();
            active = true;
        }
    }

    /**
 
View Full Code Here

        if (createdRB != null) {
            if (!createdRB_dragged) {
                Container parent = createdRB.getParent();
                parent.remove(createdRB);
                parent.validate();
                parent.repaint();
            } else {
                //translate this e to a MouseEvent for createdRB
                MouseEvent newE = SwingUtilities.convertMouseEvent(this, e, createdRB);
                createdRB.mouseReleased(newE);
            }
View Full Code Here

        Container oldParent = this.getParent();
        if (oldParent != null) {
            oldParent.remove(this);
            oldParent.remove(arrow.arrow);
            oldParent.validate();
            oldParent.repaint();
        }
        //add this to newparent Container if non-null
        if (newparent != null) {
            if (constraints == null) {
                newparent.add(this, 0);
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.