File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes GridBagLayout 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 "GridBagLayout" Watch "GridBagLayout" New topic


Mini Pilla
Ranch Hand

Joined: Jul 15, 2001
Posts: 112
HOw true is this???
While constructing GridBagLayout, you won't tell how many rows and columns the underlying grid has.
Ranch Hand

Joined: Jun 07, 2001
Posts: 48
Each component that goes into gridbag layout has to be tagged with a gridbagconstraint object that carries number of parameters.These parameters are used for positioning, sizing and padding in grid bag layout.

Hope this helps
tvs sundaram
Ranch Hand

Joined: Jan 28, 2001
Posts: 153
For your information
public GridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int anchor,
int fill,
Insets insets,
int ipadx,
int ipady)
Creates a GridBagConstraints object with all of its fields set to the passed-in arguments. Note: Because the use of this constructor hinders readability of source code, this constructor should only be used by automatic source code generation tools.
gridx - The initial gridx value.
gridy - The initial gridy value.
gridwidth - The initial gridwidth value.
gridheight - The initial gridheight value.
weightx - The initial weightx value.
weighty - The initial weighty value.
anchor - The initial anchor value.
fill - The initial fill value.
insets - The initial insets value.
ipadx - The initial ipadx value.
ipady - The initial ipady value.
can be used to position components in GridBagLayout
tvs sundaram
I agree. Here's the link:
subject: GridBagLayout
It's not a secret anymore!