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.
if wish application run in own window, write applet calls
yourapplication.main()
methodstart()
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
Post a Comment