• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using applets as applications??

 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Horstmann reads that an applet can be used as an application by calling it from appletviewer, however, I can't seem to get the code running within my console, can you help?






"Listings 10–5 and 10–6 list the code. Try running both the applet and the application:
appletviewer NotHelloAppletApplication.java
java NotHelloAppletApplication"



Also, any code snippet for playing an audio file from a webpage written in HTML that calls Java code to play the audio file? It seems I have to use java.applet.AudioClip, and, that MP3 format is not supported, although, there are libraries written to support this functionality.



Source: Core Java Volume I (8th Ed) P.532 to P.538.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic