Results 1 to 3 of 3
  1. #1
    pepa_u is offline Member
    Join Date
    Feb 2011
    Rep Power

    Default Mac OS X, Swing & Spaces - how to determine on which space given Java window is?

    Hi all,

    Please, is there any way how to determine position of a JFrame (or any window) in Mac OS X Spaces? It is easy to find position and size on the screen, but I could not find out how to determine the active space. I need to detect that a window has been moved from space to space and move toolbars with it.

    Thanks for help.

  2. #2
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Stockholm, Sweden
    Blog Entries
    Rep Power


    I'm guessing Max OS X spaces are the same thing as workspaces in GNU/Linux.
    If so than it is a OS dependent feature, and your best change is the look for a library written in C (or alike) and bind it with Java.
    Ex animo! Hibernate
    Java, Arch Linux, C, GPL v3, Bash, Eclipse, Linux VT, GNOME 2 and many buttons on windows.

  3. #3
    pepa_u is offline Member
    Join Date
    Feb 2011
    Rep Power


    I was thinking about a JNI based solution, which will probably work after all. However, I was hoping in some hidden, undocumented function directly in Java :)

Similar Threads

  1. Replies: 6
    Last Post: 01-21-2011, 07:02 AM
  2. How to find the active Window in Swing?
    By akcasoy in forum AWT / Swing
    Replies: 16
    Last Post: 06-26-2010, 05:33 PM
  3. Java swing window...
    By mohitgupta1989 in forum Advanced Java
    Replies: 2
    Last Post: 06-25-2010, 02:02 PM
  4. Swing: unstabel window paint?
    By t500yo in forum AWT / Swing
    Replies: 3
    Last Post: 06-03-2010, 02:25 PM
  5. Converting all spaces to Single Space
    By JordashTalon in forum New To Java
    Replies: 6
    Last Post: 02-26-2009, 01:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts