my dog learned polymorphism*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes GridBagConstraints Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "GridBagConstraints" Watch "GridBagConstraints" New topic
Author

GridBagConstraints

Taylor
Greenhorn

Joined: Oct 01, 1999
Posts: 12
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

Joined: Nov 12, 2000
Posts: 183
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

Joined: Aug 30, 2000
Posts: 3141
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


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
mohamed sabry
Greenhorn

Joined: Mar 22, 2001
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GridBagConstraints