Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sarim raza
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's:
gbc.insets = new Insets(5, 5, 5, 5);
Dickson
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic