java.awt.Canvas should override getPreferredSize

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P5
    • None
    • Affects Version/s: 1.1.1
    • Component/s: client-libs
    • x86
    • windows_nt



      Name: sgC58550 Date: 06/19/97


      If you derive an object from Canvas and override getMinimumSize,
      you still get the wrong result from getPreferredSize because it
      is obtained from the peer.

      The reason is because Canvas overrides getMinimumSize itself,
      but Component's getPreferredSize deferrs to the Peer.

      Canvas should override getPreferredSize to call getMinimumSize.

      Otherwise, every subclass of Canvas which overrides
      getMinimumSize must also override getPreferredSize, and they
      methods in all the subclasses are all identical.

      company - WebLogic, Inc. , email - ###@###.###
      ======================================================================

            Assignee:
            Oleg Sukhodolsky (Inactive)
            Reporter:
            Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: