When I try to get the bounds of a JPanel it always returns (
I use this.getBounds()
in the constructor of the JPanel class):
java.awt.Rectangle[x=0,y=0,width=0,height=0]
At what point in the rendering of a Swing component does this actually get set? Is there an component event that happens after sizing of the bounds is made?