Hi Doug...
These days I use almost nothing execpt BorderLayout and FlowLayout.
Occasionally, I have to use GridLayout, too...but I've totally abandon
GridBagLayout...
One they _should_ put into the core is GraphPaperLayout...
<http://java.sun.com/docs/books/tutorial/uiswing/layout/example-swing/GraphPaperLayout.java>
tom
On Tue, 27 Aug 2002, Doug Lindholm wrote:
> I've had trouble with VisAD Displays filling their Containers. I have
> good luck putting them in the CENTER of a BorderLayout.
>
> Doug
>
> Tom Whittaker wrote:
> >
> > According to your HTML, your applet (a java.awt.Panel) is given a
> > 700x500 pixel space within the browser window to put things into.
> > Generally, the Panel's LayoutManager determines how this space is
> > allocated, so it all depends on what Components you have and how you're
> > telling the LayoutManager to distribute them within the Panel. Sun's
> > tutorial contains information on how the various LayoutManagers allocate
> > space.
> >
> > Therefore, it probably has much more to do with your Java code than the
> > HTML. Also, note that you might have to be a little careful when mixing
> > awt and swing components...sometimes they don't mix very well...
> >
> > tom
> >
> > On Tue, 27 Aug 2002, Brobbey,Isaac wrote:
> >
> > > Dear all:
> > >
> > > i have already posted a problem relating to this issue before, and i am
> > > currently working on it, but i will be glad to get any comments or
> > > suggestions so i can get enough insight into this sort of thing.
> > >
> > > consider this applet code below:
> > >
> > > <HTML><BODY>
> > > <APPLET CODE="Vasxpro.class"
> > > ARCHIVE="visad.jar"
> > > WIDTH="700"
> > > HEIGHT="500" >
> > > </APPLET>
> > > </BODY></HTML>
> > >
> > > my visad applet only occupies a small portion of the applet window instead
> > > of 700 and 500 that is defined in the html code, and i am wondering
> > > whether
> > > i can control that by using any of the visad API contructors which i
> > > doubt.
> > > i will be glad to know any work around on this, that is making it occupy
> > > bigger area in the applet window.
> > >
> > > as always i thank you,
> > >
> > >
> > > Isaac
> > >
> > >
> >
> > --
> > Tom Whittaker
> > University of Wisconsin-Madison
> > Space Science and Engineering Center
> > Cooperative Institute for Meteorological Satellite Studies
> > Telephone/VoiceMail: 608.262.2759
>
> --
> *----------------------------------------------------------------------*
> | Doug Lindholm, Software Engineer | E-mail: lind@xxxxxxxx |
> | Research Applications Program | Phone: 303-497-8374 |
> | National Center for Atmospheric Research | |
> | P.O. Box 3000 | There's no place |
> | Boulder, Colorado 80307-3000 | like $HOME |
> *----------------------------------------------------------------------*
>
--
Tom Whittaker
University of Wisconsin-Madison
Space Science and Eng. Center
ph: 608.262.2759