Results 1 to 1 of 1
- 04-28-2009, 05:06 AM #1Member
- Join Date
- Apr 2009
- Rep Power
how to make window active and textfield focused
I have written a fairly simple program, which takes a textfield entry and uses that to play a video and copy a file. The way I play the video is by a command line call to windows media player. (this program will only ever be run on a windows machine) The problem is, when the program has finished doing this, the wmp window is the active window, and my little jframe is not. thus in order to do it again, one must mouseclick the textfield prior to entering the text.
how do i get my jframe to be the active window and the one textfield in it to be focused, after having sent the video to wmp?
- By Robert_85 in forum Advanced JavaReplies: 4Last Post: 04-23-2009, 12:02 AM
- By jihadrh in forum Advanced JavaReplies: 8Last Post: 12-01-2008, 03:07 PM
- By Ramona in forum New To JavaReplies: 18Last Post: 11-22-2008, 06:25 PM
- By dcnorman07 in forum New To JavaReplies: 2Last Post: 10-03-2008, 06:55 PM
- By jmHoekst in forum New To JavaReplies: 1Last Post: 06-14-2008, 01:21 AM