aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Do I need to refresh? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Do I need to refresh?" Watch "Do I need to refresh?" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do I need to refresh?
 
Similar Threads
Tree Serialization How to???
problem in putting Disclosure panel into a tree den this tree into a Panel
Rerendering a rich:tree
[Struts] Handling Concurrent Actions
Refresh a folder