Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: How to make a seek bar for media player.

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation How to make a seek bar for media player.

    hey..I am new to this forum,this is my first post.

    I am making a media player using JMF,I want to use my own control components
    Can anyone please help me in making a seek bar for media player,so that it can play song according to the slider position.
    just suggest me some logic,i can figure out the coding part afterwards

    Thank You


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: How to make a seek bar for media player.

    Start writing down ideas of what you want this "seek bar" to do. How will it look? Where will it be displayed? How will the user make changes to this item? What will happen as a result of those changes? I am not sure what you want your seek bar to do, so I can not describe how to make the seek bar do what ever it is you want the seek bar to do.

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Re: How to make a seek bar for media player.

    Quote Originally Posted by jps View Post
    Start writing down ideas of what you want this "seek bar" to do. How will it look? Where will it be displayed? How will the user make changes to this item? What will happen as a result of those changes? I am not sure what you want your seek bar to do, so I can not describe how to make the seek bar do what ever it is you want the seek bar to do.
    untitled.JPG


    See the image,the slider at the top represents the seek bar...it will be used to reposition the song when the user drags or clicks the slider...Did got my point what I am saying?

    I need to implement this logic...otherwise my media player is working very good..its alsmost 80% ready ..

    Thanx for the reply

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: How to make a seek bar for media player.

    See the image
    Seems very small, but yes.



    the slider at the top represents the seek bar...it will be used to reposition the song when the user drags or clicks the slider
    Well this is a start. The computer will require very specific details in order for it to work. What else do you have to add?



    I need to implement this logic
    First you need to come up with the logic to be implemented. Continue with above.



    otherwise my media player is working very good..its alsmost 80% ready
    That is almost 80% cool! Keep at it for more than 20% more!

Similar Threads

  1. How can i make my Player attack another Player?
    By Graser in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 31st, 2012, 06:01 PM
  2. Media Player Help in java
    By Tajinder in forum Java SE APIs
    Replies: 2
    Last Post: September 27th, 2011, 01:00 PM
  3. java game bullets hit player 1 but not player 2
    By ajakking789 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 22nd, 2011, 09:19 AM
  4. java game, both players move for player 2 but not player 1
    By ajakking789 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 21st, 2011, 01:52 PM
  5. Replies: 0
    Last Post: May 11th, 2010, 04:37 AM

Tags for this Thread