I have an interesting question, I'm helping someone can help me out with this. I have been playing with the JavaSound API and I have come into contact with the FloatControls (pan and gain). Basically I know these controls only work if the line supports them.
I have been working on a media player GUI and I want to display the swing components that are related to the FloatControls. I only want to add them to the content pane if the line supports them. Now it is my understanding that you can only check if a line supports controls after it has been created and to create one you need a file to do so (maybe I'm wrong). Here is my problem, my program is letting the user select the file once the program is running, so how am I suppose to know what controls to add to the content pane if I don't have a SourceLine set up yet?