Hi, I was wondering, is their any way to draw/add a JFrame inside a JApplet. I have this JFrame that needs to be in Applet form, and I don't know how to go about doing it. Completely re-writing it is out of the question (5 or so classes). I didn't write it, my teacher did, and he needs it in JApplet form. He would do it himself, but he doesn't have time. This is NOT homework, I'm taking this on of my own free will. Any help would be GREATLY appreciated =]
llemes4011
31
Posting Whiz in Training
Recommended Answers
Jump to PostNo, you're going to have to convert the top-level window to JApplet. There really aren't too many things to change in many cases. If the other classes are lightweight components, it should be fairly trivial.
You can find a lot of information here:
Jump to PostIt's usually not too much trouble to convert from a JFrame to a JApplet as long as you don't run up against the tighter security concerns of applets. Just change the "extends JFrame" to "extends JApplet" and divide the code into the appropriate applet life cycle methods (init, start, stop, …
All 5 Replies
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
llemes4011
31
Posting Whiz in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
llemes4011
31
Posting Whiz in Training
jcomeau_ictx
0
Newbie Poster
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.