File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes how does GridBagConstraints accesses the insets variable, please help ?? 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 "how does GridBagConstraints accesses the insets variable, please help ??" Watch "how does GridBagConstraints accesses the insets variable, please help ??" New topic
Author

how does GridBagConstraints accesses the insets variable, please help ??

sarim raza
Ranch Hand

Joined: Nov 02, 2000
Posts: 232
meaning how are the values set, given an instance of GridBagConstraints as
GridBagConstraints gbc = new GridBagConstraints();
is it
gbc.insets(5,5,5,5); // ??
or
gbc.insets.top =5; .....
or something else ?
Mora Yung
Greenhorn

Joined: Dec 27, 2000
Posts: 5
I think it's:
gbc.insets = new Insets(5, 5, 5, 5);
Dickson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how does GridBagConstraints accesses the insets variable, please help ??