<HTML>
<HEAD>
<TITLE>Untitled file 'GrowPanel.html'</TITLE>
<!-- Copyright (c) 1996 by The Geometry Center. All Rights Reserved. -->
</HEAD>
<BODY BGCOLOR="FFFFFF">
<!-- *Navigation-Links -->
<B>Up:</B> <A HREF="source.html"><I>Java Kali Source Code and Documentation</I></A><BR>
<HR>
<p>

<!-- *Begin-Document-Body -->
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Mon Sep 16 18:51:14 CDT 1996 -->
<A NAME="_top_"></A>
<TITLE>
  Class GrowPanel
</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<H1>Class GrowPanel</H1>
<PRE>
<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.lang.Object.html">java.lang.Object</A>
   |
   +----<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html">java.awt.Component</A>
           |
           +----<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Container.html">java.awt.Container</A>
                   |
                   +----<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Panel.html">java.awt.Panel</A>
                           |
                           +----GrowPanel
</PRE>
<HR>
<DL>
  <DT>class <B>GrowPanel</B>
  <DT>extends <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Panel.html">Panel</A>
</DL>
The GrowPanel object is somewhat of a kludge (OK, it's totally a
kludge).  The idea is that I want to force the groupPanel, which is
the subpanel of the ControlPanel which contains the group buttons,
to have a fixed size, so that it doesn't change size (and hence
cause the entire ControlPanel's layout to change) when the
particular group button panel (wallpaper/frieze/rosette) that it
contains changes.  So, in theory, I'd like a way of telling the
layout manager to force the groupPanel to have a certain size, and
that size should be computed at run-time to be the max size of the
3 group button panels.  In practice, however, I cannot figure out
how to compute the actual sizes of these (or any) panels until they
are actually painted to the screen.  SO, the kludge is to use a
Panel whose size (as returned by its preferredSize() and
minimumSize() methods) is always the max of its previous size and
its current size.  Then, as long as we start out with the largest
of the 3 possibilities (wallpaper), things should be OK.
<p>
If you know of a better way to do this
<A HREF="http://www.geom.umn.edu/admin/bin/make-mailform.cgi?to=mbp@geom.umn.edu">
let me know</A>!
<HR>
<A NAME="index"></A>
<H2><IMG SRC="images/method-index.gif" WIDTH=207 HEIGHT=38 ALT="Method Index"></H2>
<DL>
  <DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#minimumSize()"><B>minimumSize</B></A>()
<DD><DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#preferredSize()"><B>preferredSize</B></A>()
<DD></DL>
<A NAME="methods"></A>
<H2><IMG SRC="images/methods.gif" WIDTH=151 HEIGHT=38 ALT="Methods"></H2>
<A NAME="preferredSize()"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="preferredSize"><B>preferredSize</B></A>
<PRE>
  public <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Dimension.html">Dimension</A> preferredSize()
</PRE>
<DL>
  <DL>
    <DT><B>Overrides:</B>
    <DD><A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Container.html">preferredSize</A> in class <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Container.html">Container</A>
  </DL>
</DL>
<A NAME="minimumSize()"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="minimumSize"><B>minimumSize</B></A>
<PRE>
  public <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Dimension.html">Dimension</A> minimumSize()
</PRE>
<DL>
  <DL>
    <DT><B>Overrides:</B>
    <DD><A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Container.html">minimumSize</A> in class <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Container.html">Container</A>
  </DL>
</DL>
<!-- *End-Document-Body -->
<p>

<!-- *Navigation-Links -->
<HR>
<B>Up:</B> <A HREF="source.html"><I>Java Kali Source Code and Documentation</I></A><BR>

<!-- *GC-Common-Footer -->
<HR>
<NOBR><A HREF="/"><IMG SRC="/pix/home.gif" ALT="[HOME]" ALIGN=MIDDLE></A>
<I>The Geometry Center Home Page</I></NOBR>
<p>
Author: <A HREF="http://www.geom.umn.edu/locate/mbp">Mark Phillips</A><BR>
Comments to:
<A HREF="/admin/mail/webmaster.html">webmaster@geom.umn.edu</A><BR>
Created:  Sep 16 1996 --- 
<!-- hhmts start -->
Last modified: Sep 18 1996
<!-- hhmts end -->
</BODY>
</HTML>
