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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.1
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: