Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Applet beenden

Empfohlene Antworten

Veröffentlicht

Hi Leute,

wenn mein Applet einen Fehler feststellt (Exception) soll es nach einer Warnung sich selber beenden. Wie geht das? destroy() und stop() sind ja nicht implementiert bzw leer.

  • Autor

das habe ich schon alles gemacht mit der aussagekräftigen exc und so.

Die Frage ist: Wie sorge ich dafür, dass das Applet sich beendet, wenn der Benutzer bei der Fehlermeldung dann auf OK klickt?

Weil nach Applet.start() ein destroy() nichts bewirkt.

Gib doch einfach mal einen Teil deines Quellcodes, wirste wohl oder übel net dran vorbei kommen.

Ich versteh immer noch nicht was du eigentlich willst. Was läuft denn an Deinem Applet noch? Von der HTML-Seite bekommst du es nicht runter, außer du benutzt dieses Netscape-Packet mit dem du auf JavaScript zugreifen kannst.

Kannst du nicht etwas mehr Informationen geben?

gruss

markus

Weiß net, aber mal mit System.exit(0); ausprobiert?

Also wenn ich anch einer Exception abbrechen will, in nem Java Prog, dann mache ich das so. Wegen der Fehlermeldung ist noch leichter, poste ich nachher mal ein Beispiel.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.