| | |
Displaying GUI components relating to FloatControls (Java Sound)
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Dec 2004
Posts: 27
Reputation:
Solved Threads: 0
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?
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?
•
•
Join Date: Dec 2004
Posts: 27
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by jwenting
create the user interface on the fly depending on what features the stream supports.
![]() |
Similar Threads
- Copy and paste Components (Java)
- I lack focus... (Java)
- a Java GUI based program using Swing classes, Vat (Java)
- Help with Java programming for lottery (Java)
Other Threads in the Java Forum
- Previous Thread: Help My Program!!!--rele Easy
- Next Thread: Help~X.509 certificate
| Thread Tools | Search this Thread |
actuate android api applet application applications array arrays automation balls bank binary bluetooth business chat class classes clear client code codesnippet collections component database defaultmethod development dice dragging ebook eclipse error event exception formatingtextintooltipjava fractal froglogic game givemetehcodez graphics gui hql html ide image infinite input integer intersect invokingapacheantprogrammatically j2me java javaprojects jni jpanel julia linux list loop looping map method methods mobile mysql netbeans newbie numbers openjavafx parameter php print problem program programming project recursion repositories scanner screen scrollbar server set size sms sort sorting sql sqlserver state storm string sun superclass swing swt text-file threads time tree windows






