aspose file tools*
The moose likes Java in General and the fly likes JApplet or JFrame ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JApplet or JFrame ? " Watch "JApplet or JFrame ? " New topic
Author

JApplet or JFrame ?

Steve Yu
Ranch Hand

Joined: Mar 26, 2003
Posts: 60
Suppose I design a web page (URL) for users, I want users to click on a link and it should pop up a dynamic page including some buttons, etc. I know this poped up dynamic page can be a JApplet. Now is it possible that it can be swing type JFrame ? In other words, is swing only limited to application usage instead of web ?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
A JApplet is a Swing component. Swing is not limited to application use. Depending on your audience and the components you use, you may run into users that don't have a new enough Java plug-in to run all those Swing widgets.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Steve Yu
Ranch Hand

Joined: Mar 26, 2003
Posts: 60
Thanks for your reply. I tried Dirk's example and it pops an applet first, and the applet can trigger a Frame. Now, I want to make sure of this ---
when user clicks a URL link, if it pops up a separate window, then this window can only be a "Applet" or "JApplet", is that right ? Of course, by clicking on something on this applet window it may pop up more "Frame" or "JFrame". But I want to know -- by clicking on a URL link for the first time, can we get a "Frame" or "JFrame" immeditely instead of a "Applet" or "JApplet" ?
thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JApplet or JFrame ?