Java applet was falsch
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class App extends Applet implements ActionListener{
/*
*
*/
private static final long serialVersionUID = 1L;
//
Button StreamOeffnen;
public void init("Stream Öffnen" == "Stream Öffnen""HI");
}
}
1 Antworten zur Frage
Videos zum Thema
YouTube Videos
Java Applet, was falsch?
ich krig nur errors während dem laufen, der button ändert auch nicht den text
Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at App.actionPerformed
at java.awt.Button.processActionEvent
at java.awt.Button.processEvent
at java.awt.Component.dispatchEventImpl
at java.awt.Component.dispatchEvent
at java.awt.EventQueue.dispatchEvent
at java.awt.EventDispatchThread.pumpOneEventForFilters
at java.awt.EventDispatchThread.pumpEventsForFilter
at java.awt.EventDispatchThread.pumpEventsForHierarchy
at java.awt.EventDispatchThread.pumpEvents
at java.awt.EventDispatchThread.pumpEvents
at java.awt.EventDispatchThread.run
aaaaaaaaah, ich habs
ich idiot, ich hätt einfach nur source.setLabel machen müssen