• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Rewind and Fast Forward button audio

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm trying to modify code from sun, I'm trying to add a Fast Forward and a Rewind can anyone help
Code

[ UD: added code tags ]
[ January 24, 2006: Message edited by: Ulf Dittmer ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello "zip zipeee"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Since yours does not conform with it, please take a moment to chnage it, which you can do right here.

Enjoy your time here.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As regards your question, what is the problem you're facing in adding the two buttons? You have added them to the GUI, now you need to handle them in the actionPerformed method.

BTW, I've added CODE tags to your post. They maintain the formatting, making it much easier to read code. You'll find the "CODE" button underneath the input field when you post a message.
 
jack
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the information, I'm just not sure how to add the fast-forward and rewind functionality. Thanks Jack
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jack-

Thanks for changing your screen name. Unfortunately, it's still not what is required, which is a real(-sounding) first and last name. Please change it accordingly.

As to the applet, java.applet.AudioClip is based on com.sun.media.sound.JavaSoundAudioClip on recent JVMs. That does not support forward/backward out of the box (or even restarting at the point where it got stopped) either. There are hints (in the startImpl method) that it is principally possible to navigate to an arbitrary position in the playback, but unless you feel like mucking around with JDK-internal classes, I think you're out of luck.
[ January 25, 2006: Message edited by: Ulf Dittmer ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic