You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Faramir KAZ <fa...@kaz.bzh> on 2026/01/08 20:57:37 UTC

export java to a browser

Hello,

I saw that there were several solutions to export a Java program to make 
it work in a browser.
Has anyone ever done this from Netbeans?

:)

Re: export java to a browser

Posted by Andreas Reichel <an...@manticore-projects.com>.
Greetings, when now SwingUI was involved then likely WebAssembly will
do the trick: https://www.baeldung.com/java-wasm-web-assembly

I can personally recommend TeaVM, its quite impressive.

Good luck and cheers
Andreas


On Fri, 2026-01-09 at 10:40 +0100, Faramir KAZ wrote:
>  
> I use Processing. I don’t see any call to Swing in the Java code
> exported by Processing... so I think that I don’t need swing for now,
> at least in my current application.
> 
> Would you have an idea of the solution that I could explore as a
> priority?
> 
> Thank you very much for your response
> :)
>  
> 
>  
>  
> Le 08/01/2026 à 22:50, Joseph Huber via users a écrit :
>  
> > 
> > 
> > I don’t know what your Java application entails, but I have used
> > Webswing successfully with my NetBeans RCP applications (heavy use
> > of Swing) built on top of the NetBeans platform.
> > 
> > https://www.webswing.org/en
> > 
> >  
> > 
> > I didn’t have to make changes to the NetBeans code, but did have to
> > do some fiddling with the Webswing setup, as my applications store
> > configuration and job files locally.  If you aren’t using any Swing
> > components, then Webswing likely isn’t the right solution, or at
> > the least, would be overkill.
> > 
> >  
> > 
> > 
> > 
> > 
> > Thank You!
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > Joe Huber
> > 
> > 
> > 
> > Standard Refrigeration LLC
> > 
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > From: Faramir KAZ <fa...@kaz.bzh> 
> > Sent: Thursday, January 8, 2026 2:58 PM
> > To: users@netbeans.apache.org
> > Subject: export java to a browser
> > 
> > 
> > 
> >  
> > 
> > 
> > You don't often get email from faramir@kaz.bzh. Learn why this is
> > important [1] 
> > 
> > 
> > 
> > 
> > 
> > Hello,
> > 
> > I saw that there were several solutions to export a Java program to
> > make it work in a browser.
> > Has anyone ever done this from Netbeans?
> > 
> > :)
> > 
> >  
>  


[1] Learn why this is important
    https://aka.ms/LearnAboutSenderIdentification

Re: export java to a browser

Posted by Faramir KAZ <fa...@kaz.bzh>.
I use Processing. I don’t see any call to Swing in the Java code 
exported by Processing... so I think that I don’t need swing for now, at 
least in my current application.

Would you have an idea of the solution that I could explore as a priority?

Thank you very much for your response
:)


Le 08/01/2026 à 22:50, Joseph Huber via users a écrit :
>
> I don’t know what your Java application entails, but I have used 
> Webswing successfully with my NetBeans RCP applications (heavy use of 
> Swing) built on top of the NetBeans platform.
>
> https://www.webswing.org/en
>
> I didn’t have to make changes to the NetBeans code, but did have to do 
> some fiddling with the Webswing setup, as my applications store 
> configuration and job files locally.  If you aren’t using any Swing 
> components, then Webswing likely isn’t the right solution, or at the 
> least, would be overkill.
>
> Thank You!
>
> Joe Huber
>
> Standard Refrigeration LLC
>
> *From:*Faramir KAZ <fa...@kaz.bzh>
> *Sent:* Thursday, January 8, 2026 2:58 PM
> *To:* users@netbeans.apache.org
> *Subject:* export java to a browser
>
>
> 	
>
> You don't often get email from faramir@kaz.bzh 
> <ma...@kaz.bzh>. Learn why this is important 
> <https://aka.ms/LearnAboutSenderIdentification>
>
> 	
>
> Hello,
>
> I saw that there were several solutions to export a Java program to 
> make it work in a browser.
> Has anyone ever done this from Netbeans?
>
> :)
>

RE: export java to a browser

Posted by Joseph Huber via users <us...@netbeans.apache.org>.
I don't know what your Java application entails, but I have used Webswing successfully with my NetBeans RCP applications (heavy use of Swing) built on top of the NetBeans platform.
https://www.webswing.org/en

I didn't have to make changes to the NetBeans code, but did have to do some fiddling with the Webswing setup, as my applications store configuration and job files locally.  If you aren't using any Swing components, then Webswing likely isn't the right solution, or at the least, would be overkill.

Thank You!

Joe Huber
Standard Refrigeration LLC

From: Faramir KAZ <fa...@kaz.bzh>
Sent: Thursday, January 8, 2026 2:58 PM
To: users@netbeans.apache.org
Subject: export java to a browser

You don't often get email from faramir@kaz.bzh<ma...@kaz.bzh>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>

Hello,

I saw that there were several solutions to export a Java program to make it work in a browser.
Has anyone ever done this from Netbeans?

:)