Hi, Background: I need to include an HTML pane inside my swing application that shall load different static html pages based on the button clicked. Problem : I read that as of now, Java supports only HTML 3.2 in its JTextPane and HTMLEditorKit. Question: Could any one suggest how to display html 4.0 page inside the swing application, possibly by launching the installed IE within a swing panel. Thanks!
I do not think you can run an explorer within a swing panel. You can initiate an explorer via Runtime.exec() method. Search the intermediate forum for examples.
SCJP2. Please Indent your code using UBB Code
Joined: Sep 28, 2001
My requirement is not simply to create a seperate process instance, which Runtime.exec() does. The requirement is to constrain IE window in a panel of my swing application. I am sure there would be some way to do this!
Your "requirement" suddenly changed from just rendering HTML 4.0 to embedding IE inside a Swing component?!?!?
Well if HTMLEditorKit did not support html 4.0 then I would rather have liked IE to be embedded in swing panel.[ Reading in perspective helps! ] I found out that infact there is already an RFE ( request for enhancment) submitted for this at java.sun.com Bug Id 4880230 Thanks anyway!