Whats is the Dimension Class used for?

Scott Stanchfield

The Dimension class is a representation of the size of an AWT or Swing component.

It's returned from several methods, such as

  comp.getSize();
  comp.getPreferredSize();
  comp.getMaximumSize();
  comp.getMinimumSize();

For some details on when and why this is used, see Effective Layout Management at http://developer.java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/index.html.

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact