This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Applets and the fly likes JFrames Within Applets/JApplets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "JFrames Within Applets/JApplets" Watch "JFrames Within Applets/JApplets" New topic
Author

JFrames Within Applets/JApplets

colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 712
Hi, I have a class that extends JFrame, and this has components,
which extend JPanels and so on.

I wanted to put my application into an applet.
I know Applet has its own paint() method, but all I want to do is
do this from with the JPanels inside my JFrame.
Can I just put a JFrame into an Applet, without having to change my code?

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35250
    
    7
An applet can certainly open a window (which is what JFrame is). It may need to be a JApplet instead of an Applet, I'm not sure.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JFrames Within Applets/JApplets
 
Similar Threads
JMenu
How to convert Applet program into an Exe
Swing
validate(), remove()- what do they REALLY do?
Swing