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

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

XMLWordPrintable

    • x86, sparc
    • solaris_2.6, solaris_7



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: