• Post Reply Bookmark Topic Watch Topic
  • New Topic

Loading html page in swing

 
smita bhopale
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to load html page which contains javascript code like :-
function fun()
{
window.open('directoryname/filename.htm', 'title', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes ,height=500,width=700')
}

I am using JEditor to show html pages i.e. JEditor.setPage(url) method to show url .
But it is not understanding javascript code.
Is there any solution to make JEditor script enabled?

second solution is to load default browser .If I load default browser ,it is showing browser correctly.But I don't want to show any menu-bar or toolbar.Is there any solution to hide menubar & toolbars of browser at run-time.

Or if there is another solution to show html pages [containning scripts] .Please tell me.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JEditorPane and Javascript aren't going to happen.

You might take a look at NetClue or Ice Browser. I don't think Ice Browser is free and am not sure about NetClue but sometimes you gotta do what you gotta do I suppose.

As to your second question, unless you can specify some runtime parameters to a browser to get what you want (which is typically done with javascript) then I really don't know. You might want to ask that question in the HTML and Javascript forum. Just leave the Swing part out of the question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!