Re: Creating a Client Webpage with embedded Java

Gheorghe TUDOSE <[email protected]>
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <CAE6KG5iQ=GZAG9-R3eL2mXq_bykAPDmiQx=OiSBFaj=5AS7JAA@mail.gmail.com>
I think cheerpj is what you're after. With a few caveats like "truly"
desktop/native features might not work - like e.g. file & database access,
OS interaction, sockets, etc.
Haven't used it personally, don't know about licensing & pricing.

În mie., 2 apr. 2025 la 16:47, slipbits <[email protected]> a scris:

> 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 <[email protected]> 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: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.