• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JApplet or JFrame ?

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Steve Yu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic