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.
Ich würd mal schwer darauf tippen, dass es folgende Zeile ist:
An der Stelle ist text anscheinend noch null.Java:text.setText("" + zeile);
Dies liegt daran, dass du im Konstruktor von Layouttest() in Zeile 45 eine neue Instanz von FileReadWriteExample erstellst. Wenn diese initialisiert wird, ist text darin noch null. text wird erst später initialisiert (Zeile 94).
FileReadWriteExample lu = new FileReadWriteExample();
text = new JTextArea();
String zeile = null;
while ((zeile = in.readLine()) != null) {
text.setText("" + zeile);
}