fork download
  1. //same stuff as before...
  2.  
  3. private class HandlerClass implements ActionListener {
  4.  
  5. public void actionPerformed(ActionEvent event) {
  6.  
  7. repaint();
  8.  
  9. //same stuff as before...
  10.  
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:3: error: modifier private not allowed here
private class HandlerClass implements ActionListener {
        ^
Main.java:3: error: cannot find symbol
private class HandlerClass implements ActionListener {
                                      ^
  symbol: class ActionListener
Main.java:5: error: cannot find symbol
	public void actionPerformed(ActionEvent event) {
	                            ^
  symbol:   class ActionEvent
  location: class HandlerClass
Main.java:7: error: cannot find symbol
		repaint();
		^
  symbol:   method repaint()
  location: class HandlerClass
4 errors
stdout
Standard output is empty