java - Start external program, but keep application in foreground -
i'm writing rss reader desktop application in java swing (odd choice, know) needs start web browser of user's choice (suppose it's firefox). use runtime.exec("firefox -new-window $url"). starts new window of firefox appears in foreground.
when click link in application, want start firefox keep application on top (so can open several links , go them). there way this? preferably should work browser (any program) , start maximized not in foreground, though i'd settle other solutions starting minimized or using command line arguments of firefox (i haven't found purpose).
it's kind of funny - questions i've found people having opposite problem, , i've written similar application several years in c# works intended. vaguely remember having same problem, looking @ sources now, don't see solution - seems starts browser no stuff.
i got it. reason why not find right answer was asking wrong question. solution has nothing launching programs. necessary set .setalwaysontop(true); on main jframe.
Comments
Post a Comment