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.

ArthurJoel

User
  • Registriert

  • Letzter Besuch

Alle Beiträge von ArthurJoel

  1. ArthurJoel hat auf ArthurJoel's Thema geantwortet in Java
    Was ist ein Output?._. Und wo muss ich dem ActionListener die Buttons zuweisen?
  2. ArthurJoel hat einem Thema gepostet in Java
    Guten Abend, also ich hab erst seit kurzem mit Java angefangen und kenn mich daher nicht so gut aus. Im Moment versuche ich ein Memory Spiel zu schreiben, hab jedoch ein paar Schwierigkeiten beim ActionListener (den ich auch nicht so recht verstehe, wäre gut, wenn ihn mir jemand erklären könnte, die Erklärungen im Netz sind nicht hilfreich c: ) Wenn ich auf einen Button drücke, möchte ich, dass das in der Konsole angezeigt wird, doch irgendwie stimmt da was nicht. Würde mich über etwas Hilfe freuen Das ist der ganze Code: import java.awt.Color; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class Hauptseite { public static void Aussehen() { JFrame frame = new JFrame(); ArrayList<JButton> liste = new ArrayList<JButton>(); { JPanel panel = new JPanel(new GridLayout(4, 4)); for (int i = 0; i < 16; i++) { JButton button = new JButton(); liste.add(button); panel.add(button); button.setBackground(Color.black); } frame.add(panel); } ActionListener al = new ActionListener(){ public void actionPerformed(ActionEvent e) { if (e.getSoure(button)[FONT=Impact]hier wird ein Parameter gefordert._.[/FONT]){ System.out.println("Wurde gedrücktt"); } } }; frame.setSize(500, 500); frame.setVisible(true); System.out.println("Rahmen"); } public static void main(String[] args) { Aussehen(); } }

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.