Hi i have a quick question. If i have a java application are their any third party applications that can help me run it on an html website without porting it to a JApplet.
Yarra
-2
Newbie Poster
Recommended Answers
Jump to PostIt would be fairly easy to rewrite the application to run as an applet. Put the GUI and code into a panel that could be either added to a JFrame for the application or to a JApplet for the applet.
Any file I/O would have to be changed. But that …
Jump to PostYou need to handle image files as resources not as disk files. Use the getResources methods and put the images on the classpath. Normally that would be in a jar file.
The GUI would be what you see on the screen.
Jump to PostSee the getResource methods in the API doc to see how they work.
They return a value that can be used to read the contents of an image file.
There are lots of code samples on the forum if you do a search.
All 10 Replies
NormR1
563
Posting Sage
Team Colleague
Yarra
-2
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
Yarra
-2
Newbie Poster
Yarra
-2
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
Yarra
-2
Newbie Poster
Yarra
-2
Newbie Poster
Yarra
-2
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.