Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

gridbag layout in panels

 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic