This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug SWING/20804] New: JFrames not using insets to calculate size.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]