• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Why use a JApplet instead of just the Class code?

 
Ranch Hand
Posts: 356
Android Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So basically I'm looking back to the HTML class I took about year ago. One section we used a Java class that would display text like a rolling credits. So I want to know what exactly are the main differences with this? I realized that when I was making my class that I used a regular JFrame Form, but realized that there is a JApplet and Form as well. The JApplet code says Creates a new JFC (Swing) applet. An applet is a Java class that can run in any Java-enabled browser. Which I knew, and this is what I will do, but I'm curious if there is any big difference? I know Applets have things like signing certifications and such, but what else?


Thanks,

~JO
 
Sheriff
Posts: 67403
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As opposed to what?

It almost sounds like you expect to be able to run Java in the browser without an Applet, and that's not going to happen.
 
Marshal
Posts: 25594
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jay Orsaw wrote:So basically I'm looking back to the HTML class I took about year ago. One section we used a Java class that would display text like a rolling credits.



Are you sure that wasn't Javascript?
 
Jay Orsaw
Ranch Hand
Posts: 356
Android Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Paul Clapham wrote:

Jay Orsaw wrote:So basically I'm looking back to the HTML class I took about year ago. One section we used a Java class that would display text like a rolling credits.



Are you sure that wasn't Javascript?



I tried to attached the CreditRoll.class file, but The Ranch says they don't like .class or .zip..... Apparently it opens up as JNLP and says it's an applet in the console... I cannot open the file in my IDE it says "no sources."

I guess that answers my question about it having to be an applet. Didn't really make much sense to me at all.


@Bear not at all, I was curious exactly what was going on in the CreditRoll.class.
 
Jay Orsaw
Ranch Hand
Posts: 356
Android Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I couldn't edit, so sorry for the double post. I forgot to ask how exactly was this code created that I couldn't open it "without it's sources?" Is that the "classLoader" as mentioned in the Applet FAQ?
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic