File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

gridbag layout in panels

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi.
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 ?
TIA


humanum errare est.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Yes.


"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 ...
 
wood burning stoves
 
subject: gridbag layout in panels