Package java.awt

Examples of java.awt.Container.doLayout()


            }

            // TF:21/9/07: We don't need to tell a grid field to re-layout itself as it will be listening for us re-sizing anyway
            Container grandMa = pParent.getParent();
            if (hasChanged && grandMa != null && (!grandMa.isValid())&& !(grandMa.getLayout() instanceof GridFieldLayout)){
                grandMa.doLayout();
            }
//            helper.populateChangeInformation(pParent);
            isDirty = false;
        }
View Full Code Here


            }

            // TF:21/9/07: We don't need to tell a grid field to re-layout itself as it will be listening for us re-sizing anyway
            Container grandMa = pParent.getParent();
            if (hasChanged && grandMa != null && (!grandMa.isValid())&& !(grandMa.getLayout() instanceof GridFieldLayout)){
                grandMa.doLayout();
            }
//            helper.populateChangeInformation(pParent);
            isDirty = false;
        }
View Full Code Here

            }

            // TF:21/9/07: We don't need to tell a grid field to re-layout itself as it will be listening for us re-sizing anyway
            Container grandMa = pParent.getParent();
            if (hasChanged && grandMa != null && (!grandMa.isValid())&& !(grandMa.getLayout() instanceof GridFieldLayout)){
                grandMa.doLayout();
            }
//            helper.populateChangeInformation(pParent);
            isDirty = false;
        }
View Full Code Here

                _picture.setBackground(null);
                container.add("Center", _picture);
                container.validate();
                container.invalidate();
                container.repaint();
                container.doLayout();

                Container c = container.getParent();

                while (c.getParent() != null) {
                    c.invalidate();
View Full Code Here

                _picture.setBackground(null);
                container.add("Center", _picture);
                container.validate();
                container.invalidate();
                container.repaint();
                container.doLayout();

                Container c = container.getParent();

                while (c.getParent() != null) {
                    c.invalidate();
View Full Code Here

//     parent.doLayout();
//   }
        initSize();
  Container parent = getParent();
  if(parent != null)
    parent.doLayout();
  return super.imageUpdate(img, flaginfo, x, y, width, height);
    }

    /**
     * Returns the minimum size of the ImageButton
View Full Code Here

  public boolean imageUpdate(Image img, int flaginfo,
           int x, int y, int width, int height) {
      initSize();
      Container parent = getParent();
      if(parent != null)
    parent.doLayout();
      return super.imageUpdate(img, flaginfo, x, y, width, height);
  }

  private void initSize() {
      if (alert != null) {
View Full Code Here

   * Update the panel size.
   */
  protected void updatePanelSize() {
    Container parent = getParent();
    if (parent != null) {
      parent.doLayout();
      scrollPane.doLayout();
      parent.repaint();
    }
  }

View Full Code Here

        if (parent instanceof JComponent) {
          ((JComponent)parent).revalidate();
        } else {
          parent.invalidate();
        }
        parent.doLayout();
        parent.repaint();
      }       
    }

    /**
 
View Full Code Here

                public void run() {
                  Container container = editorComponent
                      .getParent();
                  if (container != null) {
                    container.doLayout();
                    container.setSize(editingContainer
                        .getPreferredSize());
                    container.invalidate();
                  }
                }
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.