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

Tiger-beta: Rollback the changes for fix 4926566

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b56
    • CPU:
      generic
    • OS:
      generic

      Description

      I am currently tracking a defect with Eclipse that has to do with the positioning of an EmbeddedFrame. When you run Eclipse using an EmbeddedFrame in 1.5, the window is moved out from under you. The problem is that the Eclipse developer in charge of this feature is using JDK 1.4.2 and does not see the problem. I went into some of the source that I have cached off on my machine and found that there was a change made somewhere between build 20 and build 32 where C:\jdk15b32src\j2se\src\windows\native\sun\windows\awt_Frame.cpp was changed to remove the automatic setting of the location to be 0,0. Here is the source for build 20:

      /*
       * Override AwtComponent's Reshape to keep this frame in place if it is
       * an embedded 'frame'
       */
      void AwtFrame::Reshape(int x, int y, int width, int height)
      {
          if (IsEmbedded()) {
      x = y = 0;
          }
          AwtWindow::Reshape(x, y, width, height);
      }


      And here is the source for build 32:

      /*
       * Override AwtComponent's Reshape to keep this frame in place if it is
       * an embedded 'frame'
       */
      void AwtFrame::Reshape(int x, int y, int width, int height)
      {
          AwtWindow::Reshape(x, y, width, height);
      }



      ###@###.### 2004-06-01

        Attachments

          Activity

            People

            • Assignee:
              dmikhalksunw Denis Mikhalkin (Inactive)
              Reporter:
              rverabel Raghu Verabelli (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: