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

java.awt.Canvas should override getPreferredSize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      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 - ###@###.###
      ======================================================================

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: