Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new process in internal frame

 
NILESH PATEL
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
Does anyone know if it is possible to start a process in a JFrame or JInternalFrame rhather that your desktop? Just wondering whether it would be possible to open internet explorer for example, in a JInternalFrame which is part of a parent frame. Much like windows file browser where you can select urls from the left pane and preview its html on the right pane. It would be useful..
Thanks in advance
Nilesh
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you trying to do something like this:

This assumes you are running windows and have Paintbrush (PBrush.exe) in your PATH. Of course you can change the String param of exec() to whatever you want.
Hope this helps
 
NILESH PATEL
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. Half way there. But I was thinking more of an external process displayed within the parent frame of the button, may be south of the button itself, like an integral part of the main frmae, may be using internal frame or something. It looks to me that this may not be possible. But we never know of the java's capability in handling processes.
Thanks
Nilesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic