bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/24115] New: layout issue with JCheckBox inside GridLayout


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug swing/24115] New: layout issue with JCheckBox inside GridLayout
Date: 29 Sep 2005 07:39:18 -0000

See attached screenshot for the placement of JCheckBox'es inside a
GridLayout when the GridLayout is wider than the JCheckBox:
the JDK (1.4 and 1.5) left-aligns the JCheckBox'es, while classpath
(cvs 2005.09.29) seems to center them.

Arguably, both behaviours are valid, but classpath should probably
follow the reference implementation here. 

The relevant source code is like this:

    ...
    includeClasspathCB =
        new JCheckBox( " include CLASSPATH JARs ",
          SetupManager.getBoolean(
            "Hades.Browser.IncludeClasspathJars", false ));
      includeExtensionCB =
        new JCheckBox( " include extension directory JARs ",
          SetupManager.getBoolean(
            "Hades.Browser.IncludeExtensionJars", false ));

      JPanel tfPanel = new JPanel( new GridLayout(0,1) );
      tfPanel.add( new JLabel(
        "Enter directory names:  /tmp/hades  C:\\temp\\hades  etc.") );
      tfPanel.add( dir0TF=_tf(0) );
      tfPanel.add( dir1TF=_tf(1) );
      tfPanel.add( dir2TF=_tf(2) );
      tfPanel.add( dir3TF=_tf(3) );
      tfPanel.add( new JLabel("") );
      tfPanel.add( includeClasspathCB );
      tfPanel.add( includeExtensionCB );
      ...

-- 
           Summary: layout issue with JCheckBox inside GridLayout
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: swing
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hendrich at informatik dot uni-hamburg dot de
                CC: bug-classpath at gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24115




reply via email to

[Prev in Thread] Current Thread [Next in Thread]