Test case below. The JFrame is too small by the size of the insets.
import java.awt.*;
import javax.swing.*;
public class testlabel {
public static void main( String args[] ) {
JFrame frame = new JFrame( "just a frame" );
JLabel l = new JLabel("asdf");
frame.getContentPane().add(l);
frame.pack();
frame.show();
}
}
--
Summary: JFrames not using insets to calculate size.
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: SWING
AssignedTo: kho at redhat dot com
ReportedBy: kho at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20804