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

getLocation and setLocation on frames don't work right on Solaris

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1
    • client-libs
    • None
    • sparc
    • solaris_2.5

      [never 6 dec 96]
      I've tried several times to write code to place frames at particular locations but it doesn't seem to behave consistently. There's a sample piece of code in the The Java Class Libraries: An Annotated Reference which purports to place a new frame with its corner where you click. The book shows what appears to be a working screenshot from Windows 95 but the same code doesn't work under Solaris. Presumably after call to setLocation(100, 100) a call to getLocation() should return (100, 100) but it doesn't. Under CDE it returns (105, 23) which almost makes some sense given that the Insets are 5 on the left and 25 on the top, but it looks like the insets are wrong as well.

            gsaab Georges Saab
            never Tom Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: