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.

Menü...

Empfohlene Antworten

Veröffentlicht

Servus alle miteinand!

Ich möchte unter java so etwas erstellen, wie Ihr es oben links in eurem Browser seht. Und zwar den Menüpunkt Datei mit all seinen Unterfunktionen( Speichern, schliessen, öffnen usw.) Wer hat das schonmal gemacht und kann mir evtl. bei dem Code helfen???

Wäre sehr nett von euch! Danke schonmal

:);)

[ 26. Juni 2001: Beitrag editiert von: Selex ]

Probiers mal so....

import java.applet.Applet;

import java.awt.*;

import.awt.event.*;

public class menuapplet extends Applet implements Actionlistner {

MenuFrame menuWindow;

....

}

class MenuFrame extends Frame implements Actionlistner{

Menu Menu1;

MenuBar MenuBar1;

MenuItem MenuItem1;

MenuItem MenuItem2;

TextField txt1;

MenuFrame(String title){

super(title);

txt1 = new TextField("");

setLayout(new GridLayout(1,1));

add(text1);

MenuBar1 = new MenuBar();

Menu1 = new Menu("MenuBsp");

MenuItem1 = new MenuItem("Bsp1");

MenuItem2 = new MenuItem("Bsp2");

Menu1.add(MenuItem1);

Menu1.add(MenuItem2);

MenuItem1.addActionListner(this);

MenuItem2.addActionListner(this);

...

MenuBar1.add(Menu1);

setMenuBar(MenuBar1);

}

public void actionPerformed (ActionEvent event){

if(event.getSource()==MenuItem1){

txt1.setText("Bsp1");

}

}

}

[ 26. Juni 2001: Beitrag editiert von: Schitzu ]

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.