Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: exec forground process

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question exec forground process

    OK, not 100% thread related but this is the closest forum.

    My Java App displays a slideshow. Some slides are movies, not just pictures. Playing movie is OS-dependant.

    On Mac OS X I exec () VLC to play the file.

    This launched behind my app, so I added --video-on-top to the command line. Fixed that.
    However VLC is still not foremost App - keypresses still go to my app.

    Question: How can I launch an external process (bundled App) in foreground (or so it receives keypresses)?


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: exec forground process

    You need to transfer the keyboard focus to the player's GUI. Unfortunately, I don't think this is something that can be done in pure Java.

Similar Threads

  1. App needs to exec script
    By jocala in forum Android Development
    Replies: 0
    Last Post: July 5th, 2012, 09:01 PM
  2. Re: How to Navigate to a URL with Runtime.getRuntime().exec()
    By bharathpangu in forum Java Theory & Questions
    Replies: 1
    Last Post: March 19th, 2012, 12:09 PM
  3. Changing the forground of a date using DateChooserCombo
    By banny7 in forum AWT / Java Swing
    Replies: 0
    Last Post: January 9th, 2012, 02:48 PM
  4. Runtime.Exec() not waiting
    By PrinceSendai in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: June 9th, 2011, 02:12 PM
  5. Runtime.getRuntime().exec(command) - I get nothing
    By andersbk in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 7th, 2010, 08:47 PM