It would be nice if DrJava supported applet-style
access to image and sound files, so that applets could
be run directly from the Interactions pane. This could
be done similarly to the Applicet system, available
under a proprietary license from
http://users.belgacombusiness.net/arci/applet/index.html .
(See closed Feature Request 582058: "applicet
integration" for more details.)
Logged In: YES
user_id=431096
There is a freely available option for this now. It is described
in the FAQ at the DrJava website:
<http://drjava.net/faq.shtml>
It would still be nice to integrate this more directly, i.e. include
this functionality in the base classes of DrJava. My emails to
the authors of ObjectDraw about this issue have been
unanswered so far.
Logged In: YES
user_id=429731
Actually, I'm not sure if ObjectDraw supports applet-style access to
image and sound files through the AppletContext. That seems to be
the big feature touted by the Applicet framework. But regardless,
users can still do a substantial amount with applets in DrJava just
using ObjectDraw (as described in the FAQ).
Implemented direct support for running applets. I'll leave this open for now, because sound playback is currently not supported. To refocus the feature request: it would be nice if someone could implement the AppletContext.getAudioClip() method provided by the class edu.rice.cs.plt.swing.AppletComponent.
In revision 4925, we implemented a "Run Document as Applet" menu item (Tools menu,
Shift-F2). Also added was an Interactions Pane "applet" command that works
like the "java" command we already had. You can start an
applet from the command line by typing in:
java MyApplet arg1 arg2 arg3
This internally generates the following command line:
edu.rice.cs.plt.swing.SwingUtil.showApplet(new MyApplet("arg1","arg2","arg3"), 400, 300);
The arguments get passed in as strings. That means the applet class
must have a constructor with the right number of String parameters.