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

getLocationOnScreen() returns negative coordinates (Solaris only, 1.1.x only)

    Details

    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      solaris_2.6, solaris_7

      Description



      Name: diC59631 Date: 11/24/97


      import java.awt.*;

      public class TestGetLoc {

          TestGetLoc() {
              Frame win = new Frame("Test Window");
              win.setSize(200,100);
              win.pack();
              win.setVisible(true);
              Point loc = win.getLocationOnScreen();
              System.out.println("screen location x="+loc.x+" y="+loc.y);
          }

          public static void main(String[] args) {
              new TestGetLoc();
          }
      }

      output:
      screen location x=-4 y=-24
      (Review ID: 20725)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rramsunw Ranganathan Ram (Inactive)
                Reporter:
                dindrigo Daniel Indrigo (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: