Forums Register Login

JSlider and JMF

+Pie Number of slices to send: Send
hi friends,
i need a help,my scenario is i have a JSlider,which is corresponding with video playing in the player(JMF).i dont know how to connect this two. (i.e) slider marker will move corresponding to media playing.if playing is stoped slider will not move like wise...

please any body help me
+Pie Number of slices to send: Send
Is a slider the right thing to use? Don't you mean a JProgressBar?
+Pie Number of slices to send: Send
 

Originally posted by Campbell Ritchie:
Is a slider the right thing to use? Don't you mean a JProgressBar?


A slider sounds more proper to me. AFAIK, a JProgressBar only displays information while a JSlider allows you to interact with the information, to view it and to change it. This seems like what the OP desires to do: allow a change of the JSlider's position to change the corresponding video position.
+Pie Number of slices to send: Send
 

Originally posted by pete stein:
. . . change of the JSlider's position to change the corresponding video position.

OK.

With the JSlider.setValue() method, I presume.
+Pie Number of slices to send: Send
dear friends,
i explain once again...

* i would get mediatime and duration is only as long/double.
* in JSlider parameters are integer..
* if using setValue method by type casting it didnot working...
* And important one is the updation of the slider value should be event triggered..and not use of thread,timer...
* because my project is mediaplayer,so i could run all modules..

please any one...
+Pie Number of slices to send: Send
I am surprised you can't get an int by subtracting the start and finish long values.
Apart from that, don't know. Sorry.
+Pie Number of slices to send: Send
hi,

is this open? if yess i"ll post some code to do it

sven
+Pie Number of slices to send: Send
 

Originally posted by Sven Goetgeluck:
hi,

is this open? if yess i"ll post some code to do it

sven

We usually suggest not posting code on such old threads, but in this case where there wasn't a proper answer, it might be good to make an exception. Please post the code, and let's see it working
Do Re Mi Fa So La Tiny Ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1967 times.
Similar Threads
problem drawOval() cant be found.
slider problem
textfield value for JSlider
Jslider - Button
To make JSlider frozen
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:47:10.