• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GridBagConstraints

 
Taylor
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q1: Which java.awt.GridBagConstraints variables are irrelevant for a component, if
fill = fill.BOTH is selected for this component.
(select all...)
anchor
ipadx
insets
weightx
Q2: What is the range of the weightx variable ?
(select one)
A. the same as integer values
B. the same as double values
C. from 0.0 to Double.MAX_VALUE
D. from 0.0 to 1.0
 
shabbir zakir
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the answer to the first question is a)Anchor. I don't know what is answer for the second question. can any one answer the second question
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Taylor,
Please read the JavaRanch Name Policy and re-register using a name that complies with the rules.
Thanks for your cooperation.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
 
mohamed sabry
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
[1] anchor, because it controls how to locate the component into the container, since the component will fill the whole container, using anchor has no meaning
[2] 0.0 to Double.MAX_VALUE
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic