java - Swing Application Run In Web Browser -


i have create 1 swing application , want run swing application in local web browser plz tell me how can because applet program there no longer process this.

browsers not know run applications. run applets.

there 2 ways refactor application.

  1. if wish application run in own window, write applet calls yourapplication.main() method start()

  2. if wish see application browser's window (as part of web page) have create applet (that extends pannel), set layout borderlayout , put main panel of application center of applet. that's it.

if not have 1 panel contains elements, e.g. adding elements directly jframe have fix application. create 1 main panel, add elements there , put panel center of jframe.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -