• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can wightx and wighty be > 1

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In this one simmulation of the effects of gridbagconstraints I saw that you can they only used values from 0.0 or 1.0 (like 0.2). But in a program I saw 2,3,and 4 used. Can wightx be greater than 1. Whats the range? How does it deam with negetive
numbers?
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
You cannot have weightx, wieghty value greater than 0ne 1.0. if any one mention in program it may be percent of weightx and percent of weighty.
hope cleared...
Regarde
Satish
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Satish, Kourosh,
The default value of this field is 0. weightx should be a non-negative value. The API never states that weightx & weighty should never be greater that 1.0.
IT CAN BE ANY NON NEGATIVE VALUE.
HTH,
Aruna
 
reply
    Bookmark Topic Watch Topic
  • New Topic