Community
Participate
Working Groups
Created attachment 136507 [details] Source code Build ID: Build id: M20090211-1700 Steps To Reproduce: Review this code in the attached source: Problem 1 package homenetwork.bkr.training; import java.awt.event.ActionListener;; public class TimerTest { public static void main (String[] args) { ActionListener //now I've added an import but the error still remains...er? } } Problem 2 Review the following code snippet: package homenetwork.bkr.training; import java.awt.*; //I wrote this import import java.awt.event.ActionEvent; //why did I have to write this? import java.util.*; public class TimePrinter { public static void actionPerformed (ActionEvent event) { Date now = new Date(); System.out.println("At the tone, the time is: " + now); Toolkit.getDefaultToolkit().beep(); } } More information:
Source code doesn't compile it is just for illustration. Why doesn't it compile? I'll have to check with the author :)
Problem 1: The code is not syntactically correct. Please fix the syntax error first. Problem 2: java.awt.* doesn't include java.awt.event.ActionEvent. Closing as INVALID. Reopen if this doesn't answer your concerns.
Closing as INVALID.
The point in reporting bugs is not to have the code written perfectly, since an IDE is meant to be used during development, rather when the code is complete, imho.
Created attachment 136553 [details] Source code This is the working version.
Verified for 3.5RC2 using I20090521-2000.