Can anyone tell me how to include html file as well as exe file in a frame? Would be grateful if you can post/mail email@example.com a few examples for the same.
With html it's easy.
It can be done using Swing integration for 2D widget support build in LG3D:
More pieces of information about JEditorPane can be found here:
Thanks for your help. I could run a html sample by following the link given. Could anyone suggest me how it can be done with exe file?
What do you mean by running an .exe file in frame? An EXE file is an executable file. I'm afraid it's impossible.
But you can launch such executable file from java code:
public class Launcher
public static void main(String args)
Runtime.getRuntime().exec( "something.exe" );
catch (IOException e)
Save this code as Launcher.java, change the name of the application to launch, compile and try it yourself.
Of course, it'll work only on Windows.
Please read this article:
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.