Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JApplet or JFrame ?

 
Steve Yu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Steve Yu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic