How can I use JavaScript functionality when using JEditorPane?

Sandip Chitale

You can't out of the box.

You will have to implement the it yourself including chages to the HTML parsing and also the JavaScript engine.

Use an alternate implementation of Swing based HTML veiwer which supports JavaScript. One I know of is at http://www.icesoft.no/icebrowser5/index.html