• 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
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Range of weightx and weighty

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Q. what is the valid range for weightx and weighty in gridbaglayout.

This question is posted quite often in Javaranch but each thread did not result in any conclusive answer. Some said the range should be from 0.0 to 1.0, some 0.0 to MAX.DOUBLE. Today I referred Core Java Vol.I and also Deitel & Deitel. They have freely used values like 100, 1000 for weightx and weighty.
I would like input from Ajith. In one of my previous posting to the moderators I had mentioned u all to post at least one answer to the ongoing thread so that it becomes conclusive sort of thing. To which only Ajith replied. I was than also referring to such open ended thread which does not lead to any final answer. So I would once again request u all to post at least one reply to each thread so that the JVM for this should be exited. Why I insist for this that most visitors to javaranch are going thru learning phase of Java and there inputs cannot be just taken as conclusive. U people have attained certain competency level in Java so ur words can be taken as the final.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Praveen Kumar:
Q. what is the valid range for weightx and weighty in gridbaglayout.

This question is posted quite often in Javaranch but each thread did not result in any conclusive answer. Some said the range should be from 0.0 to 1.0, some 0.0 to MAX.DOUBLE. Today I referred Core Java Vol.I and also Deitel & Deitel. They have freely used values like 100, 1000 for weightx and weighty.
I would like input from Ajith. In one of my previous posting to the moderators I had mentioned u all to post at least one answer to the ongoing thread so that it becomes conclusive sort of thing. To which only Ajith replied. I was than also referring to such open ended thread which does not lead to any final answer. So I would once again request u all to post at least one reply to each thread so that the JVM for this should be exited. Why I insist for this that most visitors to javaranch are going thru learning phase of Java and there inputs cannot be just taken as conclusive. U people have attained certain competency level in Java so ur words can be taken as the final.



Hi,
yes u are right.weightx and weighty can have any number which is non negative.
geetha
 
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic