• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

GridBag

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic