swing java obtenez la taille du cadre

Rectangle r = frame.getBounds();
int h = (int) r.getHeight();
int w = (int) r.getWidth();
Plat00n