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

JTabbedPane maximum size is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs



      Name: rk38400 Date: 05/13/98


      The JTabbedPane code simply returns a Dimension with Integer.MAX_VALUE
      for the getMaximumSize call.

      It should compute the maximum based on the maximums of it's contents.

      Here is the bas code in BasicTabbedPaneUI
          public Dimension getMaximumSize(JComponent c) {
              return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
          }

      getMaximumSize should call calculateSize, like min and pref do.
      A few changes to calculate size so it can handle MAX as well as
      min and pref, and it's fixed.
      (Review ID: 29555)
      ======================================================================

            amfowler Anne Fowler (Inactive)
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: