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.

Button mit Link auf eine Homepage

Empfohlene Antworten

Hallo,

benutze JBuilder5, bin totale Ãnfängerin

Meine Frage: mit meinem Chef haben wir ein kleines Programm entwickelt. Ganz unten im Fenster würd ich gern ein Button haben, daß mir ne bestimmte Web-Site im Internet Explorer öffnet ( so ne Art Link ), jetzt hab ich auch was in der Java Hilfe

( englisch ) bezüglich URL gesehen, aber welche Methode ist die richtige? Brauch ich dafür ne extra Klasse?

Hat jemand einen Tip?

Anna

Teste mal

import java.net.*;

try

{

URL test = new URL ("http://meineHomepage.de")

}

catch(MalformedURLException mfue)

{

System.err.println(mfue.getMessage());

}

soweit so fit, einen fehlenden Semikolon hinzugefügt, aber wenn ich den Button anklick passiert nix

try

{

URL test = new URL ("http://meineHomepage.de") ;

test.openConnection();

}

catch(MalformedURLException mfue)

{

System.err.println(mfue.getMessage());

}

ist es für ein applet oder ?

ne application, geht das da überhaupt?

wahrscheinlich nicht?!

zu einer application weiß ich leider nichts. sorry

Frag vielleicht mal bei diesem Forum nach:

http://javaforum.breed.de

Hallo,

dafür gibt es, wie für fast alles, schon eine fertige Klasse. :D

http://browserlauncher.sourceforge.net/

Das ganze selber so zu implementieren, dass es auf allen JVM läuft ist, wenn du dir dir Klasse anschaust, nicht gerade einfach. ;)

Gruß Jaraz

Viel Spaß!

Ich habe es mir gerade angesehen.

:)

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.