Your Internet Explorer version is not compatible with our shopping cart system. Please use version 9 or higher to avoid problems with your order(s). Close
In a JFrame created with Swing/Matisse, why the size of the components (such as Jpanel) are not set at the end of the initComponents (although a pack() is called at the end of the initComponents)?
when is it appropriate to call methods such as getWidth() or getHeight within a JFrame?
Paolo,
Every component in Swing has a ‘preferredSize’ that is used and even when sizes are set, depending on the layout manager you are using, the size you are setting still might not be honored; that is what the min/max size limits are for.
Unless you are setting a size, there won’t be any size arguments in the initComponents method.