permaculture playing cards
The moose likes Swing / AWT / SWT and the fly likes gridbag layout in panels Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "gridbag layout in panels" Watch "gridbag layout in panels" New topic

gridbag layout in panels

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Is it possible to have a different set of gridbag contraints on each of the panel e.g. if I define 3 panels in my applet, can I have 1 set of constraints for each panel ?

humanum errare est.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521

"JavaRanch, where the deer and the Certified play" - David O'Meara
achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi Cindy.
In one panel, I alternated between .RELATIVE and .REMAINDER, that comes out find.
In the second (adjacent) panel, I wanted to display an image, somehow that went awry, with only either parts of the image displayed or none at all.
I tried modifying the width and height parameters inside the html <APPLET...> tag, that didn't help much other than to move the displayed panel around.
Here is the code snippet, looks relatively simple, but I couldn't get the display on the second panel...
eek help ...
I agree. Here's the link:
subject: gridbag layout in panels
It's not a secret anymore!