Embedding a JFileChooser in a Panel

is it possible to embed a file chooser in a JPanel?, i'm trying to get my program to look something like how CuteHTML does. Or should i just use a JTree to display the dirrectory, and contents?

Yes, you can embed JFileChooser in a JPanel, since JFileChooser is merely a subclass of JComponent. Use the JPanel's add(Component c) method (inherited from java.awt.Container)...
I don't know, however, what CuteHTML looks like. If you can get away with using the JFileChooser, do so, as it will save you ALOT of work having to rig a TreeModel, etc., for use with a JTree.
good luck.

Similar Messages

  • JFileChooser as a panel, not as a dialog

    I'm trying to use a JFileChooser as a panel in a wizard.
    I can get the selected file name back if the user double-clicks by adding an ActionListener onto the chooser.
    I can get the selected file name back if the user single-clicks by adding a PropertyChangeListener (prop = SelectedFileChangedProperty).
    However, if the user enters a name by typing it (or pasting it I guess), when I call getSelectedFile(), it returns the wrong value.
    So, I need to know how to read the value that's in the text field, or get an event when the user changes it, or make the field un-editable.
    I've searched the forums for quite a while, but have not found any applicable topics. Can this be done? Thanks...

    I was able to get the value from that text by extending JFileChooser, and adding this recursive method:
       public String getEnteredFile (Component c)
          if (c instanceof JTextField)
             return ((JTextField) c).getText();
          if (c instanceof Container)
             for (Component child : ((Container) c).getComponents())
                String text = getEnteredFile (child);
                if (text != null)
                   return text;
          return null;
    However, I still can't tell if the user has entered data into that field, so that I can enable my wizard's Next button. I guess I can use a similar recursive method to get the JTextField, and add a listener on it. Seems kind of clunky, but it should work...

  • Youtube Embeds displaying on every tabbed panel

    So I am having a problem with spry tabbed panels.
    Everything seems to be going fine, except that every youtube video that is embeded shows on every page ( or almost every page) even though they are only contained with certain tabbedPanelContentGroups.
    Is there anything to do about this? I would be happy to proivde code, but I'm hoping there is a quick fix as I would assume other people would have this problem.
    Thank you very much for your time.
    EDIT: I am adding code because I realized that some of the tabs don't have the problem, specifically the ones that have the soundCloud embeds (the section with <!--Cabbibo--> at the top works fine, as well as the <!--Cash Villa--> section
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <link href="main.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <a href="index.html"><img src="images/300 dpi Swaish.png" style="opacity:.8;" width="100%"/></a>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" style="padding-left:0px;padding-right:0px;" tabindex="0"></li>
        <li class="TabbedPanelsTab" tabindex="0">Cozy</li>
        <li class="TabbedPanelsTab" tabindex="0">Charles Melvin</li>
        <li class="TabbedPanelsTab" tabindex="0">Pink Noise Ordinance</li>
        <li class="TabbedPanelsTab" tabindex="0">Xei The Ghost</li>
        <li class="TabbedPanelsTab" tabindex="0">Ded Pimpin</li>
        <li class="TabbedPanelsTab" tabindex="0">ESMK</li>
        <li class="TabbedPanelsTab" tabindex="0">Cabbibo</li>
        <li class="TabbedPanelsTab" tabindex="0">Defense</li>
        <li class="TabbedPanelsTab" tabindex="0">Ca$h Villa</li>
        <li class="TabbedPanelsTab" tabindex="0">Drrty Pharmecuticals</li>
        <li class="TabbedPanelsTab" tabindex="0">Supa Ape</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">
                  <div class="homeLeft">
                            <iframe width="100%" height="500" src="http://www.youtube.com/embed/4nPAa2Xjg2Y" frameborder="0" allowfullscreen></iframe>
            </div>
            <div class="homeRight">
            <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
             <a href="downloads/xei le phantom - o lard.mp3"><img src="images/oLard.jpg" /></a>
            </div>
        </div>
        <!--COZY-->
        <div class="TabbedPanelsContent">
            <div class="cozyLeft">
                                  <iframe width="100%" height="150" src="http://www.youtube.com/embed/DTjeN3kvH14" frameborder="0" allowfullscreen></iframe>
                                  <p></p>
                                  <p></p>
                                  <p></p>
                                  <iframe width="100%" height="150" src="http://www.youtube.com/embed/46ucyzYpoB8" frameborder="0" allowfullscreen></iframe>
                <div class="downLoad">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
            </div>
                        <div class="cozyRight">
                                  <iframe width="100%" height="150" src="http://www.youtube.com/embed/ay1DeoNRJUM" frameborder="0" allowfullscreen></iframe>
                                  <p></p>
                                  <p></p>
                                  <p></p>
                      <iframe width="100%" height="150" src="http://www.youtube.com/embed/prwGrPAsEVU" frameborder="0" allowfullscreen></iframe>
                <p></p>
                                  <p></p>
                                  <p></p>
                <iframe width="100%" height="150" src="http://www.youtube.com/embed/FUQf25vrct4" frameborder="0" allowfullscreen></iframe>
                  </div>
        </div>
        <!--END COZY-->
        <!--CHARLES MELVIN-->
        <div class="TabbedPanelsContent">
            <div class="left">
                      <iframe width="100%" height="335" src="http://www.youtube.com/embed/4nPAa2Xjg2Y" frameborder="0" allowfullscreen></iframe>
                <div class="downLoad2">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
                        </div>
                        <div class="right">
                                  <iframe width="400" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src=                                        "http://bandcamp.com/EmbeddedPlayer/v=2/track=1227280531/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://charlesmelvin.bandcamp.com/track/king-supa">King SUPA by Charles Melvin</a></iframe>
                                  <p></p>
                                  <p></p>
                                  <p></p>
                                  <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=2269435729/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://charlesmelvin.bandcamp.com/album/beatoff-vol-1">#BEATOFF Vol. 1 by Charles Melvin</a></iframe>
                        </div>
        </div>
        <!--CHARLES MELVIN END-->
        <!--Pink Noise Ordinance-->
        <div class="TabbedPanelsContent">
                  <!--Through Columns-->
                        <div class="left">
            <iframe height="335px" width="560px" src="http://www.youtube.com/embed/jePt-ZupucE" frameborder="0" allowfullscreen></iframe>
            <div class="downLoad2">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
                        </div>
                        <div class="right">
                                  <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=2897124287/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://pinknoiseordinance.bandcamp.com/album/virtual-vampire">Virtual Vampire by Pink Noise Ordinance</a></iframe>
                <br/>
                                  <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=4238875189/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://elsuper.bandcamp.com/album/your-flower">✿Your Flower✿ by Pink Noise Ordinance</a></iframe>
                <br/>
                                  <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=2652019939/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://elsuper.bandcamp.com/album/i-slept-in-a-field">I Slept in a Field by Pink Noise Ordinance</a></iframe>
                  </div>
        </div>
        <!--Pink Noise Ordinance-->
        <!--Xei-->
        <div class="TabbedPanelsContent">
                  <div class="left">
            <iframe width="100%" height="335" src="http://www.youtube.com/embed/JqvD14vC1Hs" frameborder="0" allowfullscreen></iframe>
            <div class="downLoad2">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
            </div>
            <div class="right">
                            <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=383178372/size=venti/bgcol=161616/linkcol=428 5BB/" allowtransparency="true" frameborder="0"><a href="http://xeilephantom.bandcamp.com/track/leviathan-ke-has-***">leviathan..(ke$ha's ***) by ghostly</a></iframe>
                                  <br/>
                                  <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=4169793453/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://xeilephantom.bandcamp.com/track/paws">paws. by xei the ghost</a></iframe>
                                  <br/>
                                  <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=4280837736/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://xeilephantom.bandcamp.com/track/real-lize-told">real.lize.told by xei le phantom</a></iframe>
                                  <br/>
                                  <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=3766529241/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://xeilephantom.bandcamp.com/track/o-lard">o lard by xei le phantom</a></iframe>
          </div>
      </div>
        <!--Xei End-->
        <!--Pimpin-->
        <div class="TabbedPanelsContent">
                  <div class="left" >
            <script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
                                  <script>
                                  new TWTR.Widget({
                                    version: 2,
                                    type: 'profile',
                                    rpp: 4,
                                    interval: 30000,
                                    width: 550,
                                    height: 450,
                                    theme: {
                                      shell: {
                                        background: '#333333',
                                        color: '#ffffff'
                                      tweets: {
                                        background: '#000000',
                                        color: '#ffffff',
                                        links: '#079beb'
                                    features: {
                                      scrollbar: false,
                                     loop: false,
                            live: false,
                            behavior: 'all'
                                  }).render().setUser('@dedpimpin').start();
                                  </script>
            <div class="downLoad2">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
            </div>
            <div class="right">
            <iframe width="100%" height="410" style="position: relative; display: block; width: 100%; height: 450px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=1425481289/size=grande3/bgcol=161616;/linkcol =4285BB/" allowtransparency="true" frameborder="0"><a href="http://dedpimpin.bandcamp.com/album/is-brutality">is brutality by Ded Pimpin</a></iframe>
                  </div>
        </div>
        <!--End Pimpin-->
        <!--ESMK-->
        <div class="TabbedPanelsContent">
                  <div class="left">
                            <iframe width="100%" height="335" src="http://www.youtube.com/embed/5jxorLMcRf4" frameborder="0" allowfullscreen></iframe>
                <div class="downLoad2">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
                  </div>
            <div class="right">
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg" width="100%"/><br/>DOWNLOAD RICE CAKE</a>
            </div>
        </div>
        <!--ESMK END-->
        <!--Cabbibo-->
        <div class="TabbedPanelsContent">
                  <div class="cozyLeft">
            <iframe width="100%" height="335" src="http://www.youtube.com/embed/3h41ZgXOSlw" frameborder="0" allowfullscreen></iframe>
            <div class="downLoad">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
            </div>
            <div class="cozyRight">
                               <iframe width="100%" height="166" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F33043097&sh ow_artwork=true"></iframe>
                                  <br/>
                <iframe width="100%" height="166" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F30474430&sh ow_artwork=true"></iframe>
                <br/>
                <iframe width="100%" height="166" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F29840842&sh ow_artwork=true"></iframe>
            </div>
        </div>
        <!--Cabbibo End-->
        <!--Defense-->
        <div class="TabbedPanelsContent">
        <div class="left">
        <a href=""><img src="images/elHeroic.jpg" style="position:relative;width:60%;margin-left:20%"/></a>
        <div class="downLoad2">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
        </div>
        <div class="right">
        <iframe width="400" height="100" style="position: relative; display: block; width:100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=4052682958/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://defense.bandcamp.com/album/lobello-e-p">LoBello E.P. by Defense</a></iframe>
    <br/>
    <iframe width="400" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=2002203858/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://defense.bandcamp.com/album/el-heroic">El Heroic by Defense</a></iframe>
    <br/>
    <iframe width="400" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=3191448160/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://defense.bandcamp.com/album/stitches-ep">STITCHES ep by DEFENSE</a></iframe>
        </div>
        </div>
        <!--DEFENSE END-->
        <!--Ca$h Villa-->
        <div class="TabbedPanelsContent">
                  <div class="cozyLeft">
            <iframe width="100%" height="300" scrolling="yes" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F1584822& show_artwork=true"></iframe>
            <div class="downLoad">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
                  </div>
                  <div class="cozyRight">
                                  <iframe width="100%" height="300" scrolling="yes" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F1596385& show_artwork=true"></iframe>
                        </div>
        </div>
        <!--Cash End-->
        <!--Dirty-->
        <div class="TabbedPanelsContent">
                  <div class="left">
            <iframe width="300" height="410" style="position: relative; display: block; width: 100%; height: 335px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=2093239829/size=grande3/bgcol=161616/linkcol= 4285BB/" allowtransparency="true" frameborder="0"><a href="http://dirtypharmeceuticals.bandcamp.com/album/bieber-gone-bad">Bieber Gone Bad by ✞dirty ph△rm△ceutic△ls✞</a></iframe>
            <div class="downLoad2">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
                  </div>
                  <div class="right">
                            <iframe width="400" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=1544977132/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://dirtypharmeceuticals.bandcamp.com/track/the-glorious-slay-we-have-won-everythings-o urs-everyone-is-dead">The Glorious Slay: We Have Won, Everything's Ours, Everyone Is Dead by I¢y Pharmaceuticals</a></iframe>
                <br/>
                <iframe width="400" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=2622775492/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://dirtypharmeceuticals.bandcamp.com/track/ain-soph">Ain Soph by I¢y Pharmaceuticals</a></iframe>
                <br/>
                <iframe width="400" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=346130186/size=venti/bgcol=161616/linkcol=428 5BB/" allowtransparency="true" frameborder="0"><a href="http://dirtypharmeceuticals.bandcamp.com/track/my-semen-lies-dormant-mocking-me">My Semen Lies Dormant, Mocking Me by ✞dirty ph△rm△ceutic△ls✞</a></iframe>
                <br/>
                                  <iframe width="400" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=3626930462/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://dirtypharmeceuticals.bandcamp.com/track/--14">αεηιουω by ✞dirty ph△rm△ceutic△ls✞</a></iframe>
            </div>
        </div>
        <!--Dirty End-->
        <!--Supa-->
        <div class="TabbedPanelsContent">
                           <div class="left">
            <iframe width="100%" height="335" src="http://www.youtube.com/embed/SU910lw4saw" frameborder="0" allowfullscreen></iframe>
            <div class="downLoad2">
                <a href="downloads/Charles Melvin - King SUPA.mp3"><img src="images/kingSupa.jpg"/></a>
            <a href="downloads/ESMK - Rice Cake.zip"><img src="images/riceCake.jpg"/></a>
            <a href="downloads/Pink Noise Ordinance - Virtual Vampire.zip"><img src="images/virtualVampire.jpg" /></a>
                </div>
                  </div>
                  <div class="right">
            <iframe width="300" height="410" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=3884466748/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://supaape.bandcamp.com/album/strictly-for-the-*******">Strictly for the ******* by Supa Ape</a></iframe>
            <br/>
    <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=3360886811/size=venti/bgcol=161616/linkcol=42 85BB/" allowtransparency="true" frameborder="0"><a href="http://supaape.bandcamp.com/album/ifuck">ifuck by Supa Ape</a></iframe>
                        <br/>
    <iframe width="100%" height="100" style="position: relative; display: block; width: 100%; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=183247306/size=venti/bgcol=161616/linkcol=428 5BB/" allowtransparency="true" frameborder="0"><a href="http://supaape.bandcamp.com/track/pink-sky">Pink Sky by Supa Ape</a></iframe>
                  </div>
        </div>
        <!--Supa End-->
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>

    Sorry, no probs here
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryTabbedPanels.js"></script>
    <script src="youtubePlayer.js"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet">
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2310032" binding="#youtubePlayer" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">
        </div>
        <div class="TabbedPanelsContent">
            <iframe id="html5Vid" class="youtube-player" type="text/html" width="480" height="385" src="http://www.youtube.com/embed/4nPAa2Xjg2Y" frameborder="0"></iframe>
          <script type="text/javascript">
    // BeginOAWidget_Instance_2310032: #youtubePlayer
            if (!true) {
                var vid = document.getElementById("html5Vid");
                document.body.removeChild(vid);
                var params = {};
                params.autoplay = false;
                params.loop = false;
                params.hd = false;
                params.start = 0;
                params.border = false;
                params.color1 = "#B1B1B1";
                params.color2 = "#D8D8D8";           
                var vid = createFlashPlayer("5P91PPCw2Bs", "480", "385", params);
                document.body.appendChild(vid);
    // EndOAWidget_Instance_2310032
          </script>
        </div>
      </div>
    </div>
    <script>
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>
    The above is achieved by using the YouTube Player available when you use the Adobe Widget Browser.
    Gramps

  • JFileChooser as a Panel

    hi..
    i m trying to make an application where the user has the option of opening a file from JFileCHooser or choosing a file from a recent file list in a (say) listbox... and these two options r in tabbed panes........
    so how can i get a panel from JFileChooser so that i can attach it to the tabbed pane..
    regards
    ankur

    JFileChooser is a JComponent:
    import javax.swing.*;
    public class Example {
        public static void main(String[] args) {
            JTabbedPane tabbedPane = new JTabbedPane();
            tabbedPane.addTab("choose file", new JFileChooser());
            tabbedPane.addTab("choose color", new JColorChooser());
            final JFrame f = new JFrame("Example");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(tabbedPane);
            f.pack();
            SwingUtilities.invokeLater(new Runnable(){
                public void run() {
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • Embedded youtube videos from accordion panel

    I'm trying to get embedded youtube videos to pop in from accordion panel
    the accordion panel would have the 'titles' with descriptions displayed when clicked on, and there in the description would be a link to make the embedded youtube clip appear beside the panel.
    go to each accordion panel selection and get a different embedded video to play.
    anybody know if that can be done and how ?

    Thank you for the suggestion,
    I already did try that, but didn't work.
    However after watching your swf, I figured out I must have had the wrong 'aspects' active when I was putting my embedded code in, so the results were all over the place.
    So I tried it again by your steps, and it does work, -- thankyou !  -- except for one thing.
    If the watcher does not finish or stop or pause one video before playing another, both videos are playing, even though one of them is 'hidden' in the closed panel, which is ok if there's no audio, however if they both have audio, the audio track of both play back.
    Darn, I don't think most people would realize if they don't finish a video before watching another, they have to manually stop the currently playing video before playing another.
    Even if I was to include instructions to say so.  :-(

  • Fieldpoint embedded data logger and remote panels license (5)

    Multiple use remote panels license (5) does not allow multiple access to cfp 2120 realtime embedded datalogger (all pc's on the same subnet).  Error message:"remote panel connection exceeds maximum number of licenses."  Licenses installed in ni-rt>system>share>licenses on the remote system?????????????????????????????

    Hi, thanks for your help=) I've manage to drag the file into my targeted controller. I am now doing the setting of the data logger program, but there's one thing I'm unsure of. May I know what does it mean by the cFP controller clock? http://zone.ni.com/devzone/cda/tut/p/id/3219 . Thanks. =)
    Log On Startup
     Start logging when the controller powers up.
    Start Log Time
     The time to start logging.
    Stop Log Time
    The time to stop logging.
    Note: Make sure the clock is set correctly on the controller. The settings described above refer to the cFP controller clock.
    Log Rate
    The number of milliseconds to wait between each acquisition.
    FP Drive For Data Files
    The drive to store the log files in. The C: drive is the default for all cFP controllers. If you want to save to the removable CompactFlash drive on the cFP controller, select the D: drive.
    Digital "Pause" Line
    The Digital Input item to use as a "pause" button for data logging. Logging pauses when the signal is high. When the signal goes low again, a new file is created and logging continues if appropriate.
    Note: Use only Digital Input items for the Digital "Pause" Line.
    Tip: You can use DIP Switch 3 to block the current data from being logged. This switch works the same way as the Digital "Pause" line.
    Logging Session Tag
    Is stamped on the spreadsheet that the data logger creates.

  • PixelBender + Flash in Photoshop panel

    Dear all,
    I've posted something similar in Configurator forum with no
    luck, so here I am with my question: any hint or comment will be
    greatly appreciated.
    Is it possible for a SWF that contains a PixelBender shader to
    be embedded in a Photoshop CS4 panel?
    I'd like to exploit some built-in function of Flash (like
    blur and other filters) without the need to write custom code, and
    build a complex PixelBender shader concatenating several pbj files:
    the Photoshop panel should contain only the sliders of course, and
    the effect have to be applied to the opened image. The Photoshop
    panel developer's guide explains that, for the project to be
    working and besides the swf, it's needed a javascript that
    communicate with Photoshop through its DOM, and it seems that there
    happens all the Photoshop commands. Currently I'm stuck and it
    seems to me there's no way to make it works.
    Why all this pain? Because it would mean to be able to have
    complex shaders in form of sort-of-binary plugin-like easy to use
    Photoshop panel; it would open a world of wonders.
    Thanks in advance for any comment or thoughts
    Davide Barranca
    Bologna, Italy

    Hi Davide,
    I have to apologize. I misread your first email and
    misunderstood what you were trying to achieve. I thought you were
    simply asking whether you could use Pixel Bender filters in the
    Panels at all (the answer to which I didn't know until I tried it
    yesterday). I see now that you are trying to write your own
    Photoshop filter with the Panel APIs.
    I'm not sure what you want to achieve is possible with the
    current Photoshop panel model, and even if it is possible, I don't
    think it will be very fast. The Photoshop Panel functionality is to
    provide an easy way to add a new workflow UI to Photoshop, but I
    don't think it was intended to add new image processing features to
    Photoshop. In general, if you are adding any new image processing
    to Photoshop, you have to go through the Photoshop Plug-in SDK. I
    did look at the documentation for the Panel API. I'm no expert on
    Photoshop scripting, but it looks like the exported properties of
    the DOM are purely descriptive with little chance to access the
    actual data. The only bit of promise is to use the ColorSampler
    tool to pull the image data from the foreground window, but that
    would be extremely painful and very slow. Even if that did work, I
    didn't see any way to actually update the pixels in the document.
    That being said, I believe there might be an indirect way to
    achieve what you are trying to do. The basic workflow would be:
    1. Use Panel API + Javascript to have Photoshop write out the
    image to a known location
    2. Load the image from the saved location in the SWF
    3. Process the image in the SWF
    4. Save the resultant image back out to the file
    5. Use the Panel API + Javascript to have Photoshop load the
    file
    I'm not 100% sure that this will work, and it definitely does
    have some side effects like leaving an image on disk and opening up
    another document in Photoshop for the results. But, I believe it
    will do the job. I'll see if I can whip up a tutorial on this if it
    works, but since it is not an easy example, it might take some
    time.
    As I said, I'm definitely no expert on Photoshop scripting,
    so I would strongly recommend contacting the
    Photoshop
    scripting forums to see if there is a way acquire the image
    data directly from the DOM. Judging from what the Panel API is
    trying to achieve, it's not likely that this is possible or will be
    well supported. Trying to track down the pbk versions of the
    filters to put into the Pixel Bender Photoshop Plug-in is always an
    option.
    Again, I apologize for the misunderstanding. My eyes simply
    stuck to the question in bold. Good luck with your search.
    Thanks,
    Brian

  • Kinect protection - Can it be built in a Panel PC

    hi
    I have some questions regarding Kinect and its certifications and brand protection.
    We are developing medical grade software (http://www.adora-med.com)
    Can Kinect V2 sensor be embedded in a case or panel PC (such as Kiosk implementation or similar).
    What kind of certification where made with Kinect V2 (CE mark, etc... can it be used directly in sterila area), I tried to find it on the web site, but was unsuccessful...
    Best
    Kristjan
    Kristjan http://www.adora-med.com

    If you have not found anything on the Microsoft website, then that information is not available.
    http://www.kinectforwindows.com
    Based on this thread: there are no restrictions for reselling the Kinect for Windows sensor.  The EULA authorizes commercial usage as long as its usage falls into the terms outlined.
    https://social.msdn.microsoft.com/Forums/en-US/77c0625b-913f-464d-9b52-bc8b89b994f5/selling-the-kinect-v2-as-part-of-a-robotics-product?forum=kinectv2sdk
    You will have to have your legal team review the EULA and determine if that is something you can use.
    Carmine Sirignano - MSFT

  • JFileChooser as a JComponent

    I've added a JFileChooser to a panel and disabled the standard control buttons (as they would conflict with the general feel of my application, which has a "next" button elsewhere). I want to be notified when the user selects a file and I have attached a PropertyChangeListener accordingly. I have but one problem.
    If I simply type a filename into the text field, no change event is fired. I must press the enter key in the text field for the change to take effect. It seems that what I need is a way to actively request that the JFileChooser update its selected file based on the contents of the filename text field. How might I do this?
    (The only solution I have so far is something like:
    JFileChooser chooser = ...;
    ((BasicFileChooserUI)(chooser.getUI())).getApproveSelectionAction().actionPerformed(new ActionEvent(...));which is ugly on so many levels...)

    I've added a JFileChooser to a panel and disabled the standard control buttons (as they would conflict with the general feel of my application, which has a "next" button elsewhere). I want to be notified when the user selects a file and I have attached a PropertyChangeListener accordingly. I have but one problem.
    If I simply type a filename into the text field, no change event is fired. I must press the enter key in the text field for the change to take effect. It seems that what I need is a way to actively request that the JFileChooser update its selected file based on the contents of the filename text field. How might I do this?
    (The only solution I have so far is something like:
    JFileChooser chooser = ...;
    ((BasicFileChooserUI)(chooser.getUI())).getApproveSelectionAction().actionPerformed(new ActionEvent(...));which is ugly on so many levels...)

  • JFileChooser functioning like normal Windows Apps FileChooser

    I have this problem that's been giving me too much headache already. When you click on Open on any Windows app, and click on the "Details" button, it will show you the files' details (FileName, Type, Date, etc.). This is the same with JFileChooser, so no problem there. The thing is, with Windows apps, you can click on the headers and have the files sorted according to the header you clicked. This doesn't happen to a JFileChooser. Has any of you guys did this or found any solution to this problem? I've searched (almost) everywhere, Google, Sun, etc., I even looked into JFileChooser's source code but I can't seem to find anything.
    I know this is possible, so anyone who can help, you'll be greatly appreciated.

    Thought I would pass along some updated code for this as this was very helpful to us as we are still on jdk 1.5.
    This has been modified to use the Windows UI. The advantage of doing this in the UI class is so you can set it as the default UI for JFileChooser inside your application. If you had this as a subclass of JFileChooser (as it is above) then you explicitly have to use that subclass throughout your application. By setting this UI class as the FileChooserUI in your UIDefaults table then every instance of JFileChooser will now automatically use your overridden UI and theres nothing else you have to do.
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.io.File;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.Vector;
    import javax.swing.JComponent;
    import javax.swing.JFileChooser;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.UIManager;
    import javax.swing.plaf.ComponentUI;
    import javax.swing.plaf.basic.BasicDirectoryModel;
    import javax.swing.table.JTableHeader;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableColumnModel;
    import com.sun.java.swing.plaf.windows.WindowsFileChooserUI;
    public class SortableFileChooserUI extends WindowsFileChooserUI {
         private DirectoryModel model;
         public static ComponentUI createUI(JComponent c) {
              return new SortableFileChooserUI((JFileChooser)c);
         public SortableFileChooserUI(JFileChooser filechooser) {
              super(filechooser);
         @Override
      protected final void createModel() {
              this.model = new DirectoryModel(getFileChooser());
          * Overridden to get our own model
          * @return
         @Override
      public final BasicDirectoryModel getModel() {
              return this.model;
          * Calls the default method then adds a MouseListener to the JTable
          * @param chooser
          * @return
         @Override
      protected final JPanel createDetailsView(JFileChooser chooser) {
              JPanel panel = super.createDetailsView(chooser);
              //Since we can't access FileChooserUI's private member detailsTable
              //directly, we have to find it in the JPanel
              final JTable tbl = findJTable(panel.getComponents());
              if (tbl != null) {
                   //Fix the columns so they can't be rearranged, if we don't do this
                   //we would need to keep track when each column is moved
                   tbl.getTableHeader().setReorderingAllowed(false);
                   //Add a mouselistener to listen for clicks on column headers
                   tbl.getTableHeader().addMouseListener(new MouseAdapter() {
                        @Override
            public void mouseClicked(MouseEvent e) {
                             //Only process single clicks
                             if (e.getClickCount() > 1) {
                return;
                             e.consume();
                             Column column = Column.getColumn(tbl.getTableHeader().columnAtPoint(e.getPoint()));
                             if ((column != null) && column.isSortable()) {
                SortableFileChooserUI.this.model.sort(tbl.getTableHeader().columnAtPoint(e.getPoint()), tbl);
              return panel;
          * Finds the JTable in the panel so we can add MouseListener
          * @param comp
          * @return
         private final JTable findJTable(Component[] comp) {
              for (int i = 0; i < comp.length; i++) {
                   if (comp[i] instanceof JTable) {
                        return (JTable)comp;
                   if (comp[i] instanceof Container) {
                        JTable tbl = findJTable(((Container)comp[i]).getComponents());
                        if (tbl != null) {
    return tbl;
              return null;
         private final static class DirectoryModel extends BasicDirectoryModel {
              private Column col = Column.FILENAME;
              private boolean ascending;
              private Comparator<File> filesizeComparator = new FilesizeComparator();
              private Comparator<File> filenameComparator = new FilenameComparator();
              private Comparator<File> filedateComparator = new FiledateComparator();
              * Must be overridden to extend BasicDirectoryModel
              * @param chooser
              protected DirectoryModel(JFileChooser chooser) {
                   super(chooser);
              * Resorts the JFileChooser table based on new column
              * @param c
              protected final void sort(int c, JTable tbl) {
                   //Set column and order
                   this.col = Column.getColumn(c);
                   this.ascending = !this.ascending;
                   String indicator = " ^";
                   if (this.ascending) {
                        indicator = " v";
                   final JTableHeader th = tbl.getTableHeader();
                   final TableColumnModel tcm = th.getColumnModel();
                   for (Column column : Column.values()) {
                        tcm.getColumn(column.getIndex()).setHeaderValue(column.getLabel());
                   final TableColumn tc = tcm.getColumn(this.col.getIndex()); // the column to change
                   tc.setHeaderValue(this.col.getLabel() + indicator);
                   th.repaint();
                   //Requery the file listing
                   validateFileCache();
              * Sorts the data based on current column setting
              * @param data
              @Override
    protected final void sort(Vector<? extends File> data) {
                   Comparator<File> comparator = null;
                   switch (this.col) {
                        case FILEDATE:
                             comparator = this.filedateComparator;
                             break;
                        case FILESIZE:
                             comparator = this.filesizeComparator;
                             break;
                        case FILENAME:
                             comparator = this.filenameComparator;
                             break;
                        default:
                             comparator = null;
                             break;
                   if (comparator != null) {
                        Collections.sort(data, comparator);
              private class FiledateComparator implements Comparator<File> {
                   public int compare(File a, File b) {
                        int ret = 1;
                        if (a.lastModified() > b.lastModified()) {
                             ret = -1;
                        else if (a.lastModified() == b.lastModified()) {
                             ret = 0;
                        if (DirectoryModel.this.ascending) {
                             ret *= -1;
                        return ret;
              private class FilesizeComparator implements Comparator<File> {
                   public int compare(File a, File b) {
                        int ret = 1;
                        if (a.length() > b.length()) {
                             ret = -1;
                        else if (a.length() == b.length()) {
                             ret = 0;
                        if (DirectoryModel.this.ascending) {
                             ret *= -1;
                        return ret;
              private class FilenameComparator implements Comparator<File> {
                   public int compare(File a, File b) {
                        if (DirectoryModel.this.ascending) {
                             return a.getName().compareToIgnoreCase(b.getName());
                        else {
                             return -1 * a.getName().compareToIgnoreCase(b.getName());
         private enum Column {
              FILENAME(0, UIManager.getString("FileChooser.fileNameHeaderText"), true),
              FILESIZE(1, UIManager.getString("FileChooser.fileSizeHeaderText"), true),
              FILETYPE(2, UIManager.getString("FileChooser.fileTypeHeaderText")),
              FILEDATE(3, UIManager.getString("FileChooser.fileDateHeaderText"), true),
              FILEATTR(4, UIManager.getString("FileChooser.fileAttrHeaderText"));
              private int index;
              private String label;
              private boolean isSortable;
              private Column(int index, String label) {
                   this(index, label, false);
              private Column(int index, String label, boolean isSortable) {
                   this.index = index;
                   this.label = label;
                   this.isSortable = isSortable;
              protected int getIndex() { return this.index; }
              protected String getLabel() { return this.label; }
              protected boolean isSortable() { return this.isSortable; }
              @Override public String toString() { return getLabel(); }
              protected static Column getColumn(int index) {
                   for (Column column : values()) {
                        if (column.getIndex() == index) {
                             return column;
                   return null;

  • Transparent JFileChooser

    Hi!
    I have yet another "how can I make this thing transparent" question, this time for the JFileChooser. I've written a function to recursively iterate through its components and these are the ones I can find:
    class javax.swing.JPanel
    class javax.swing.JPanel
    class javax.swing.JButton
    class javax.swing.Box$Filler
    class javax.swing.JButton
    class javax.swing.Box$Filler
    class javax.swing.JButton
    class javax.swing.Box$Filler
    class javax.swing.JToggleButton
    class javax.swing.JToggleButton
    class javax.swing.JLabel
    class javax.swing.plaf.metal.MetalFileChooserUI$1
    class javax.swing.JPanel
    class sun.swing.FilePane
    class javax.swing.JPanel
    class javax.swing.JPanel
    class javax.swing.plaf.metal.MetalFileChooserUI$AlignedLabel
    class javax.swing.plaf.metal.MetalFileChooserUI$3
    class javax.swing.Box$Filler
    class javax.swing.JPanel
    class javax.swing.plaf.metal.MetalFileChooserUI$AlignedLabel
    class javax.swing.JComboBox
    class javax.swing.JPanel
    class javax.swing.JButton
    class javax.swing.JButtonRunning setOpaque(false) on all instances of JComponent makes everything but the list of files transparent. From what I can see it's some kind of JList but it doesn't appear in the list above. Is there a way to make this last part transparent as well? Can I somehow run setOpaque(false) on it too?

    Thanks for your replies!
    I realise now I probably should have put some more effort into this before posting. I've created an example that'll hopefully make things clearer.
    Maxideon: You're right, ComboBox doesn't become transparent, it did in my code because I'd set a custom ComboBoxUI.
    It's only the list of files I'm interested in making transparent right now, I've managed to get all of the other components transparent already. Here's the code:
    FileChooserTest.java:
    import java.awt.*;
    import javax.swing.*;
    public class FileChooserTest extends JFrame {
      String background = "bkg.jpg";
      public FileChooserTest() {
        ImageIcon imageIcon = new ImageIcon(background);
        setSize(imageIcon.getIconWidth(), imageIcon.getIconHeight());
        JPanel panel = new JPanel() {
          public void paintComponent(Graphics g) {
            g.drawImage(new ImageIcon(background).getImage(), 0, 0, null);
        panel.setBounds(0, 0, imageIcon.getIconWidth(), imageIcon.getIconHeight());
        UIManager.put("FileChooserUI", MyFileChooserUI.class.getName());
        panel.add(new JFileChooser());
        getContentPane().add(panel);
      public static void main(String[] args) {
        new FileChooserTest().setVisible(true);
    }MyFileChooserUI.java
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.plaf.ComponentUI;
    import javax.swing.plaf.metal.MetalFileChooserUI;
    public class MyFileChooserUI extends MetalFileChooserUI {
      public static ComponentUI createUI(JComponent c) {
        return new MyFileChooserUI((JFileChooser) c);
      private MyFileChooserUI(JFileChooser c) {
        super(c);
      public void installComponents(JFileChooser fc) {
        super.installComponents(fc);
        customize(fc);
      /* Set opacity, call recursively */
      private void customize(Container c) {
        int len = c.getComponentCount();
        for(int i = 0; i < len; i++) {
          Component comp = c.getComponent(i);
          if(comp instanceof JComponent) {
            ((JComponent)comp).setOpaque(false);
          if(comp instanceof Container) {
            customize((Container) comp);
    }thomas.behr: Does your solution work for a JFileChooser added to a JPanel or only when it's a separate Window?
    Is there a way to create a custom ListUI that'll make the list in the JFileChooser transparent?
    Once again, thanks guys and sorry for not creating an example from the start.

  • JFileChooser filename field validation...

    All,
    I am embedding a JFileChooser object into my own JPanel. I'm setting the chooser to select directories only. The problem is that when I call chooser.getSelectedFile() and the user has typed something into the filename field, I only get the file that is selected in the list instead of the file entered by hand. Is there anyway to find out when the user changes the text in the file name field? Or, is there a way to force the selection in the list to update itself from the entered file name field? I know that if the user presses ENTER while in the file name field, this happens. Could I fake that somehow?
    Thanks!

    Well thank you all for your responces. I agree that there needs to be a change in the API to allow us to apply the changes in the file name text field. A simple solution could be to give us a method like JFileChooser.setFilenameField(JTextComponent filenameField). If the method isn't called then everything acts as it did before. If called, then you're own text field is used. Maybe an even more simple solution could be to have just a JFileChooser.getFilenameField() that returns a JTextComponent. This method could return null on UIs that don't use a filename text field.
    Anyway, digging into the BasicUI as a work-around seems to be enough for my purposes, however, this is an "after the fact" solution that doesn't let me change my "Next >" button state. I do popup an error now and then disable the "Next >" button. The previous behavior would just continue on without the user knowing that the texted they entered wasn't used.
    Thanks for your help!

  • Scroll bar stuck on Thumbnail view

    Whenever I am using the scroll bar to scroll in the thumbnail
    view ,which is set to large, the scroll bar gets stuck. When I
    place my mouse on the bar and move it up and down it does not stop
    and jumps to different places in the thumbnail view - I can't seem
    to control it. I have tried turning on the libary and clicking
    around in it, but this does not fix the problem. The only solution
    I have found is to shut Captivate 2 down and start it again. Any
    suggestions?

    Hello queenlooners,
    I spoke with some of my colleagues and unfortunately there does not seem to be a way to disable the scroll bar. There have been other discussions on the forums such as overlaying the scroll bar or embedding it in a sub-panel.
    Jacob R. | Applications Engineer | National Instruments

  • How do I open Windows Media Player 11 in a new window via labview 8.5 using ActiveX

    Hello,
    Although familiar with Labview, I am new to the ActiveX Controls. I have managed to open and play movie files in Labview with ActiveX controls but the player is embedded in Labview's front panel. How can I control what file is played and when it starts in Labview but have Windows media player 11 open in a separate window.
    Additionally, where can I find a description of the ActiveX properties.
    Thank you

    I'm trying to accomplish this same thing and am having a hell of a time finding the right Class, right Methods, and/or right Properties for a solution.  Some classes seem to return obscure errors when I try to create them use the invoke node "launchURL" (the WMPLib.ICore for example).  If I use the Player base class (which MSDS says is the root class and the class that is used when you create an embedded player) I don't get anything.
    What I would like is to progmatically launch Windows Media Player to play a particular video clip in full screen on the secondary monitor.  It seems like this should work:
    But doesn't... any ideas for this?  The C# examples are difficult to understand for me.  Also, the WMP class library is a MESS! (IMHO).  Thanks for your input.

  • Two JREs in the same machine

    Hi.,
    I had problems with two different version of JRE.I have an applet that works well in JRE1.4. Now I had a different applet that will be working only on 1.2.x.Is it possible to switch the JREs depending on the context through the html(where the applets are embedded).I know through control panel we can change the JRE setting manually.

    No - you have to adjust PATH and CLASSPATH, JAVA_HOME, etc environment variables to point to the desired version locations and libraries. If you have any other hard-coded locations/files/directories in your code that is version-specific, they'll also need changing.
    This is most easily done by building a script (.bat file, etc) that would be run prior to the applet startup to adjust the machine environment and parameters.

Maybe you are looking for