Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to control size of launced browser from java(i.e. launch as popup).

 
Sharad Kharya
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to launch the IE or Firefox browser from my Java Application. To launch the browser I am using the following code.
My requirement is to control the browser size while launching the browser.

Please let me know how can I control the browser size?

Code snippet
Thanks
Sharad
 
Campbell Ritchie
Sheriff
Pie
Posts: 50226
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know, but if you don't "empty" the two streams from that Process you might get deadlocks. Google for "when Runtime.exec() won't" and read Daconta's article before proceeding. Also look for the ProcessBuilder class, which makes this procedure slightly easier.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic