Base.java has "import java.util.*;" as its seventh line.
JBuilder has a number of warnings about unresolved Time statements. The first of which happens in Base.
So when I run MyProgram, the quiz selector opens, but when I tell it to start the quiz (and start timing), black screen, no images.
And we get: "Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems: Time cannot be resolved to a type (copied 10 times)
And here's line 268 of Base: "t.schedule( new Time ( p1a ), time * 1000 );" (with Time underlined in red)
The most frustrating part is that JBuilder obviously recognizes that Time is a subclass of java.util, since when I right-click on it and ask for the definition, it opens Time.class (extends Java.util.Date).
Soo... how can I get it to recognize that Time is already declared? I could also copy-and-paste and create my own Time class, but that's both disingenuous and poor practice.
Note that there is a Time class which extends java.util.Date. It isn't in the java.util package, though.
If you look in the API documentation which Joe linked to, and go to the page for java.util.Date, you will see a list of classes which extend it. One of them is the Time class which you thought you needed. Follow the link to see what package it's in.
Or alternatively, press the command key which tells JBuilder to generate import statements. (I assume it must have one, I don't use it myself.)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com