Package java.awt

Examples of java.awt.Container.validate()


      while (top.getParent() != null) {
        top = top.getParent();
      }

      top.validate();
    }
  }

  /**
   * Returns the minimum dimensions needed to layout the <i>visible</i>
View Full Code Here


        int ovry = y + iFrameSize.height - rootSize.height;
        x = Math.max((ovrx > 0? x - ovrx: x), 0);
        y = Math.max((ovry > 0? y - ovry: y), 0);
        iFrame.setBounds(x, y, iFrameSize.width, iFrameSize.height);

        parent.validate();
        try {
            iFrame.setSelected(true);
        } catch (java.beans.PropertyVetoException e) {}

        return iFrame;
View Full Code Here

/*      */   final void doParentLayout()
/*      */   {
/*  404 */     Container localContainer = getParent();
/*  405 */     if (localContainer != null) {
/*  406 */       invalidate();
/*  407 */       localContainer.validate();
/*  408 */       return;
/*      */     }
/*  410 */     super.reshape(this.currentX, this.currentY, this.currentWidth, this.currentHeight);
/*      */   }
/*      */
View Full Code Here

/* 436 */     if (this.debug)
/* 437 */       System.out.println("doParentLayout()");
/* 438 */     Container localContainer = getParent();
/* 439 */     if (localContainer != null) {
/* 440 */       invalidate();
/* 441 */       localContainer.validate();
/* 442 */       return;
/*     */     }
/* 444 */     super.reshape(this.currentX, this.currentY, getWidth(), getHeight());
/*     */   }
/*     */
View Full Code Here

/*     */   final void doParentLayout()
/*     */   {
/* 395 */     Container localContainer = getParent();
/* 396 */     if (localContainer != null) {
/* 397 */       invalidate();
/* 398 */       localContainer.validate();
/* 399 */       return;
/*     */     }
/* 401 */     super.reshape(this.currentX, this.currentY, this.currentWidth, this.currentHeight);
/*     */   }
/*     */
View Full Code Here

/* 317 */     if (this.debug)
/* 318 */       System.out.println("doParentLayout()");
/* 319 */     Container localContainer = getParent();
/* 320 */     if (localContainer != null) {
/* 321 */       invalidate();
/* 322 */       localContainer.validate();
/* 323 */       return;
/*     */     }
/* 325 */     super.reshape(this.currentX, this.currentY, this.currentWidth, this.currentHeight);
/*     */   }
/*     */
View Full Code Here

/*     */   private final void doParentLayout() {
/* 253 */     if (debug) System.err.println("doParentLayout:" + getParent());
/* 254 */     Container localContainer = getParent();
/* 255 */     if (localContainer != null) {
/* 256 */       invalidate();
/* 257 */       localContainer.validate();
/*     */     }
/*     */
/* 260 */     super.setBounds(this.currentX, this.currentY, this.currentWidth, this.currentHeight);
/*     */   }
/*     */
View Full Code Here

            }
           
            if (parent instanceof JComponent) {
                ((JComponent) parent).repaint(getBounds());
            } else {
                parent.validate();
            }  
        }
    }
   
    /**
 
View Full Code Here

            parentContainer.remove(editorToClose);
        }
        if (parentContainer instanceof JComponent) {
            ((JComponent)parentContainer).repaint(editorToClose.getBounds());
        } else if (parentContainer != null) {
            parentContainer.validate();
        }

        // handle the editor being closed..
        handleEditorClosed(editorToClose);
    }
View Full Code Here

                           dims.height + insets.top + insets.bottom);
        floatFrame.show();
      }

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

  /**
   * This method returns the docking color.
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.