Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
import java.awt.event.*;
import javax.swing.*;
public class OpenFileChooser {
public static void main(String[] args) {
JFrame frame = new JFrame();
JButton button = new JButton("Öffne FileChooser");
frame.add(button);
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JFileChooser fc = new JFileChooser();
fc.showOpenDialog(null);
}
});
frame.pack();
frame.setVisible(true);
}
}