| Author |
Do I need to refresh?
|
Rebecca Witmer
Ranch Hand
Joined: Sep 10, 2004
Posts: 46
|
|
|
I have some code that has several panels one panel holds a button that you press to play a sound file. Another panel holds a tree. When you click on something in the tree I am having it change the value of "filename" which is defined at the top of the class. It's doing its println of filename, so I know it is doing the right thing when you click on the tree nodes, but the file that plays is still the old audio. How do I tell it to refresh?
|
SCJP 1.4
|
 |
Daniel Searson
Ranch Hand
Joined: Dec 03, 2000
Posts: 83
|
|
When actionPerformed() is called on the button, where is it fetching the filename from? Is the filename only being stored in one place or do you have it set in two places? The other thing is that you might need to reload the audio stream, but I don't know too much about audio streams.
|
- Daniel
|
 |
 |
|
|
subject: Do I need to refresh?
|
|
|