java.awt.Dimension.setSize(double width, double height) does not resize

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.1
    • Component/s: client-libs
    • generic
    • generic



      Name: vi73552 Date: 04/11/99


      In package java.awt.Dimension, setSize does not set the size of the Dimension object:

      public void setSize(double width, double height) {
      width = (int) Math.ceil(width);
      height = (int) Math.ceil(height);
      }

      The code should be corrected to:

      public void setSize(double width, double height) {
      this.width = (int) Math.ceil(width);
      this.height = (int) Math.ceil(height);
      }
      (Review ID: 56804)
      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: