Load javascript within JFrame or JPanel
问题 I would like to load a the below javascript code to a JPanel or a JFrame . Is it possible? <script language="javascript" type="text/javascript" charset="utf-8"> //javascript code </script> 回答1: You can use third-party libraries: such as HtmlUnit It has fairly good JavaScript support (which is constantly improving) and is able to work even with quite complex AJAX libraries, simulating either Firefox or Internet Explorer depending on the configuration you want to use. Example: import com