• 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

How do i create applications using applets ?

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created applets using swings and awt but i dont know how do i put these together !! please help !! If you have the code or if some URL ...it will be great!! thanks
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An applet is an extension of Panel... so you can add it to a Frame to make a stand alone application... however, some of the functionality of the applet class is not available, such as the URL, AppletContext, etc... so you can use some code like the following to test your applet out in an application environment, but you may need to add some changes to make it work correctly...



Not sure if this exactly answers what you wanted... since you could just run the applets in appletviewer to make an applet "run like an application"... but if this helps, great... if not, please try to explain in more detail what you are trying to do...
HTH,
-Nate
 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nathan,i tried doing the above but it doesnt work.. ..dunno why.it doesnt recognise the command "Applet = //my applet name;" and says "cannot resolve symbol"..
kindly help
regards
karan
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Replace the commented out applet name with an actual object of your applet class. For example, if you had made an applet class called KarenApplet.class, you would replace the line:



with:



-Nate
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic