Results 1 to 2 of 2
  1. #1
    tuansoibk is offline Member
    Join Date
    Nov 2009
    Posts
    1
    Rep Power
    0

    Default switch focus to another window

    hello, i'm trying to write an app to control another app in Windows, there is a keyPress method in Robot class, but i don't know how to specify which process to send the key, is there any methods to send focus to a specific window and bring it to top on desktop, therefore i can send a key to it properly?

  2. #2
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default RMI and bringing windows to front

    If you want to control another application in windows you need to study Remote method induction....but if your java application window is the one you want to see the toFront() method works and you need to decide if it is modable or not...if it is a container. I don't believe you understand the principles of giving commands to exterior applications within your own.


    try studying the API
    Last edited by aaroncarpet; 11-15-2009 at 06:23 AM. Reason: left out something

Similar Threads

  1. 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, 01:17 PM
  2. how to let the shell window in SWT lose focus
    By kents in forum SWT / JFace
    Replies: 2
    Last Post: 06-25-2009, 11:34 AM
  3. how can i move one frame window to another window
    By santhosh_el in forum AWT / Swing
    Replies: 8
    Last Post: 06-10-2009, 04:36 PM
  4. switch
    By dj kourampies in forum New To Java
    Replies: 17
    Last Post: 01-30-2009, 06:32 PM
  5. switch
    By dj kourampies in forum New To Java
    Replies: 2
    Last Post: 01-30-2009, 09:46 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
  •