Skip to main content

2013 | OriginalPaper | Buchkapitel

12. Applets

verfasst von : Jan Graba

Erschienen in: An Introduction to Network Programming with Java

Verlag: Springer London

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Though an applet must have a GUI, its containing class does not extend JFrame. This is hardly surprising, of course, since applets pre-date the Swing classes, but the applet’s containing class does not extend class Frame either. Before the Swing classes appeared, an applet consisted of a class that extended class Applet (from package java.applet). The introduction of the Swing classes brought in class JApplet (package javax.swing), which extends class Applet and makes use of the other Swing classes. Thus, later applets should extend class JApplet. Unfortunately, there are major differences of operation between applets that use only pre-Swing classes and those that use the Swing classes. ‘Differences in operation’ is actually putting it very mildly. A lot of Swing applets will simply not work in some of the earlier versions of Internet Explorer and Netscape! However, this problem has been eradicated in the latest versions of the major browsers, as will be seen in the next section. Since the Swing classes have been around for so long now, most of what follows will refer to Swing applets only, and the term ‘applets’ will be used without qualification. In 12.4.1, two pre-Swing examples are used, but these are identified as such explicitly.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Metadaten
Titel
Applets
verfasst von
Jan Graba
Copyright-Jahr
2013
Verlag
Springer London
DOI
https://doi.org/10.1007/978-1-4471-5254-5_12

Premium Partner