Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4275361

Swing1.1.1fcs BorderFactory.createTitledBorder does not work well.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0
    • client-libs
    • None

       
      After upgrading to Swing1.1.1fcs, the CompoundBorder for setBorder
      doesn't work well anymore. The left and bottom sides of the border are
      missing. However, if the title border is an empty string, it works and
      all 4 sides of the border are displayed.

          Border margin = BorderFactory.createEmptyBorder(5, 5, 5, 5);
          Border streamTitle = BorderFactory.createTitledBorder("Features");
          checkPanel.setBorder(new CompoundBorder(margin, streamTitle));

      This does not happen with swing 1.1 or with JDK 2.

            amfowler Anne Fowler (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: