[5434] in java-interest

home help back first fref pref prev next nref lref last post

Window Layout

daemon@ATHENA.MIT.EDU (Global)
Thu Feb 8 17:24:29 1996

Date: Thu, 8 Feb 96 15:50:06 EST
To: java-interest@java.sun.com
From: Global <global@ctlnet.com>

Hey gang,

Anyone having luck with GridBagLayout?

I want to make the following window

  ---------------------------------------
  | Menu Bar                            |
  |                                     |
  | [Button] ----------------------- || |
  | [Button] |                     | || |
  | [Button] |                     | || |
  | [Button] |      Canvas         | || |
  | [Button] |                     | || |
  |          |                     | || |
  |          |                     | || |
  |          ----------------------- || |
  |          -----------------------    |
  |          -----------------------    |
  ---------------------------------------

Where the [Button] is a button of constant size, the small square is a
canvas, and there is a vertical and horizontal scroll bar to the right and
south of the canvas respectively.  I can do this stuff using BorderLayouts,
Panels, and the like, but that involves maintaining 4 panels whereas a
GridBagLayout seems like it could do the entire thing in one?

Whaddya think?  Possible?  Not much docs on it and code isn't quite intuitive.

Thanks,

Mike
------------------------------------------------------------
Global Trading Company, Inc.            Global Systems, Inc.
4115 Clubview Drive                      Voice: 219-436-5650
Fort Wayne, IN  46804                           219-436-8901
email:  global@ctlnet.com                  Fax: 219-436-9720

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post