Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GridBag

 
lakshmi nair
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The above code displays 5 buttons. What i want is the second should begin at a position half from the first. I wrote this expecting a result like that. What change must i make?

Thanx
Lakshmi
 
Aru Ven
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lakshmi,
Thanks. Ur question made me know more about GB.
Did u find out how to do..... Coz from 1 whole day I'm experimenting on grid bag layout but I could not get exactly the o/p.
Do lemme know if u find out something... mean while lemme experiment more.....
Aruna
 
Viji Bharat
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lakshmi:
If I have understood you correct, you are looking to implement something like this
<button1>
<button2> (button2 is right below button1 and its left edge starts exactly at the center of button1)
<button3> (button3 should be right below button2 and its left edge should be exactly at the center of button2)
etc. I haven't been able to do that!!
However I tried other possibilities. The code given below meets your requirements to some extent, I think!

[This message has been edited by Viji Bharat (edited November 22, 2000).]
 
lakshmi nair
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aruna, Viji
I didnt try it further and as you see there are not many replies. Viji's code does not work correctly with me, i dont know why. Anyway less tensed, gave the test today and passed with 83. Time for lot of experiments now!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic