Results 1 to 4 of 4
  1. #1
    Aeroren is offline Member
    Join Date
    Jan 2011
    Posts
    9
    Rep Power
    0

    Default Getting other application's window information

    I'd like to get window information (size, position) from (non-java) applications other than my own. Is there a way of doing this in java?

  2. #2
    imorio is offline Senior Member
    Join Date
    Aug 2010
    Posts
    127
    Rep Power
    0

    Default

    As far as I know, that information needs to come from your operating system. The question then becomes:does your operating system supply that information and if so how?

  3. #3
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Quote Originally Posted by Aeroren View Post
    I'd like to get window information (size, position) from (non-java) applications other than my own. Is there a way of doing this in java?
    I would advise to discontinue that project if you want to use Java and is a beginner in Java.
    There is no way to write such code in Java unless you can use another application in your OS to get that information, or if you write that code in
    another language and bind it to Java using JNI (or alike). The first alternative is not probable and is not to hard, the other alternative [using JNI] is rather advanced.
    Ex animo! Hibernate
    Java, Arch Linux, C, GPL v3, Bash, Eclipse, Linux VT, GNOME 2 and many buttons on windows.

  4. #4
    Aeroren is offline Member
    Join Date
    Jan 2011
    Posts
    9
    Rep Power
    0

    Default

    I was afraid that would be the case :) I didn't really want to sacrifice platform independence, but so be it...

    Then the question is, what about JNA?

Similar Threads

  1. Replies: 4
    Last Post: 01-10-2010, 07:48 AM
  2. Replies: 3
    Last Post: 10-12-2009, 02:03 PM
  3. Replies: 1
    Last Post: 08-05-2009, 02:43 AM
  4. change url in parent window from child window
    By rakesh_n_mehta in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-09-2009, 12:17 PM
  5. how can i move one frame window to another window
    By santhosh_el in forum AWT / Swing
    Replies: 8
    Last Post: 06-10-2009, 03:36 PM

Posting Permissions

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