Use getSize() and getBounds() rather than size() and bounds(). The latter

are deprecated.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@81 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-03-03 21:19:48 +00:00
parent b1070329bb
commit 0cb96a2380
2 changed files with 6 additions and 6 deletions
@@ -1,5 +1,5 @@
// //
// $Id: HGroupLayout.java,v 1.2 2000/12/07 11:09:59 mdb Exp $ // $Id: HGroupLayout.java,v 1.3 2001/03/03 21:19:48 mdb Exp $
package com.samskivert.swing; package com.samskivert.swing;
@@ -69,7 +69,7 @@ public class HGroupLayout extends GroupLayout
public void layoutContainer (Container parent) public void layoutContainer (Container parent)
{ {
Rectangle b = parent.bounds(); Rectangle b = parent.getBounds();
DimenInfo info = computeDimens(parent, PREFERRED); DimenInfo info = computeDimens(parent, PREFERRED);
// adjust the bounds width and height to account for the insets // adjust the bounds width and height to account for the insets
@@ -154,7 +154,7 @@ public class HGroupLayout extends GroupLayout
} }
child.setBounds(sx, sy, newwid, newhei); child.setBounds(sx, sy, newwid, newhei);
sx += child.size().width + _gap; sx += child.getSize().width + _gap;
} }
} }
} }
@@ -1,5 +1,5 @@
// //
// $Id: VGroupLayout.java,v 1.2 2000/12/07 11:09:59 mdb Exp $ // $Id: VGroupLayout.java,v 1.3 2001/03/03 21:19:48 mdb Exp $
package com.samskivert.swing; package com.samskivert.swing;
@@ -69,7 +69,7 @@ public class VGroupLayout extends GroupLayout
public void layoutContainer (Container parent) public void layoutContainer (Container parent)
{ {
Rectangle b = parent.bounds(); Rectangle b = parent.getBounds();
DimenInfo info = computeDimens(parent, PREFERRED); DimenInfo info = computeDimens(parent, PREFERRED);
// adjust the bounds width and height to account for the insets // adjust the bounds width and height to account for the insets
@@ -154,7 +154,7 @@ public class VGroupLayout extends GroupLayout
} }
child.setBounds(sx, sy, newwid, newhei); child.setBounds(sx, sy, newwid, newhei);
sy += child.size().height + _gap; sy += child.getSize().height + _gap;
} }
} }
} }