We define a PlayableProvider class with a static array of Playables, and a public static getRandomPlayable() method.
The source code here includes three classes:
1) the applet class itself,
2) the PlayableProvider class, and
3) the SmarterJob class.
You have seen two ways of providing custom functionality to MusicJob:
subclassing and overriding, versus plugging in Playable at runtime.
Previous | Tutorial Index | Tutorial Contents | Next |
(C) 1997 Phil Burk and Nick Didkovsky, All Rights Reserved JMSL is based upon HMSL (C) Phil Burk, Larry Polansky and David Rosenboom.