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.
JOptionPane.showConfirmDialog(null, "Erste Zeile\nZweite Zeile", "Titel", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
Hallo ich bin
neu
kannst du
mir helfen
JFrame meinJFrame = new JFrame();
meinJFrame.setTitle("Text einlesen");
meinJFrame.setSize(300, 150);
JPanel panel = new JPanel();
JLabel label = new JLabel("Ihr TEXT");
panel.add(label);
// Textfeld wird erstellt
// Text und Spaltenanzahl werden dabei direkt gesetzt
JTextField tfName = new JTextField(null, 15);
// Textfeld wird unserem Panel hinzugefügt
panel.add(tfName);
JButton buttonOK = new JButton("OK");
panel.add(buttonOK);
meinJFrame.add(panel);
meinJFrame.setVisible(true);