I should have added that JSP (Java Server Pages) also aren't in vogue anymore. These days, a typical web application will have the browser-/client-side written in HTML/CCS/Javascript (or a Javascript-based framework that uses those) and a web server component (e.g. written in Java or whatever is preferred) that exposes an HTTP-based API for the data the front-end reads or wants to write.
cheers tom > On Apr 2, 2025, at 9:44 AM, slipbits <slipb...@slipbits.com> wrote: > > Thanks. I think that that does help. > > The issue is that my program is several thousand lines long, and putting it > into a web page seems tedious. But, if there isn't any other way to do it > then maybe I'll try a server solution and see how that works out. > > art > > On 4/2/2025 6:30 AM, Thomas Wolf wrote: >> I think you're a bit confused. There's no such thing as a web page with >> embedded java. Perhaps you're talking about Java Server Pages (JSP) - with >> that technology, you can create text files that contain HTML (and maybe >> Javascript) and Java code to provide the dynamic content for that HTML. >> When someone on a browser asks for that file, the java in that file gets >> executed and the then completed 'web page' gets returned to the browser. >> >> If you're interested in doing everything on the client, you can't use Java, >> much less Java Swing, which is a desktop technology - i.e. it doesn't run >> inside a browser*. You want to look into Javascript based frameworks like >> React. >> >> Hope this help, >> Tom >> >> *There used to be a couple Java-based technologies called "Applets" and >> "Webstart" that would allow you to run Java on the client side (applets >> could inside the browser, webstart based programs would only invoked by the >> browser, but would run separately as a desktop application). As someone >> else pointed out, those are pretty much dead/deprecated technologies and you >> probably shouldn't try to use those in a new web-based application. >> >> >>> On Apr 1, 2025, at 4:35 PM, slipbits <slipb...@slipbits.com> wrote: >>> >>> Just started learning how to create Web page with embedded Java using the >>> Java Tutorials. The tutorials are geared to a client/server interface. I am >>> interested in performing all activities at the client side. >>> >>> The objective is to include a Java program within a Web page, and to >>> provide an interface between program and user through Java swing. I don't >>> know how to do this, and I'm not sure that the online tutorials will be >>> helpful. >>> >>> Are there any resources in NB or elsewhere, that identify how this is to be >>> done? >>> >>> As a secondary question, if I develop the program an interface separate >>> from any NB I/F can I include the separate development in a Web page using >>> NB? >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org >>> For additional commands, e-mail: users-h...@netbeans.apache.org >>> >>> For further information about the NetBeans mailing lists, visit: >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org >> For additional commands, e-mail: users-h...@netbeans.apache.org >> >> For further information about the NetBeans mailing lists, visit: >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists