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

Window.setLocationRelativeTo(null) on Ubuntu Unity doesn't use a center point

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 9
    • client-libs
    • Ubuntu 16.04 Unity

    • linux_ubuntu

      It seems that Window.setLocationRelativeTo(null) doesn't use GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint(). The actual coordinates of a Frame appears to be adjusted by a toolbar height, comparing to that center point.

      Try the attached small example.

            aghaisas Ajit Ghaisas
            yan Yuri Nesterenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: