}
}
public void testPlaceDialog() {
Dialog d = new JDialog();
d.setSize(50, 50);
Container c = new JWindow();
c.setBounds(100, 200, 100, 50);
Util.placeDialog(d, c);
assertEquals(125, d.getX());
assertEquals(200, d.getY());
// Test upper left corner
c.setBounds(0,0,100,100);
d.setSize(200, 200);
Util.placeDialog(d, c);
assertEquals(0, d.getX());
assertEquals(0, d.getY());
}