Help with using Shuffle with Windows XP

I have the 30 GB video and a shuffle.
My wife uses the shuffle and she uses her own user account on XP, but uses my account on Itunes.
I changed the library my wife uses to the one I use for Itunes, so all our songs are coming out of a same shared library as oppsoed to have two seperate libraries.
But, when I plug in my wifes shuffle under my account, it asks me my songs are from a different library, and then I have to erase the songs off her shuffle. I have tried exporting her playist, but it too erases some songs I bought from Itunes.
Do I have a configuration problem here. I want my wife and I to use the IPOd interchangably under different user accounts (She will destroy my computer is she uses an administrator account).
Once again, all the files are coming out of the same library, but for some reason it says they are different libraries.
Any thoughts? I hope I explained it correctly.

Does iTunes appear (in Explore) in both your user account AND your wife's? If so, you should probably delete iTunes from her account. Then the only Library would be the one associated with iTunes in your account.
Roger

Similar Messages

  • I have a shuffle. When I plug it into Itunes, it tells me that it has not been ejected properly, and it will not recognize the Ipod. I have turned off the computer, and tried this with another shuffle with the exact same results. Any ideas?

    I have a shuffle. When I plug it into Itunes, it tells me that it has not been ejected properly, and it will not recognize the Ipod. I have turned off the computer, and tried this with another shuffle with the exact same results. Any ideas?

    Do you remeber the exact (or close to it) wording of the error message?
    Try manually placing the iPod in Recovery mode and then try to restore
    Next try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    You can also try another computer  to help determine if you have an iPod or computer problem.

  • Help with using itunes with 4s library after i upgraded to iPhone 5 and computer power supply went

    long story hopefully an easy fix....
    on wensday my power supply went and had to ship computer across country to Puget Computer Systems as we weren't sure if it was power supply or mobo...luckily it was power supply.
    i daily backed up iphone 4s with itunes (10.7) as i do all music manually, playlists, etc. have like 3,000 plus songs, videos, audiobooks, mail aaccts and about 48 apps.
    so next day (sept 19th) apple comes out with iOS 6 which i update my 4s to with no problem. I wanted a day to play with it to learn my way around.
    next day i wait in line for 8 hours overnite and was #2 in line at apple store for my ATT 32gb white iPhone 5. while at apple store I get my icloud backup which gets all paid music,apps, etc since itunes version 10.3 (i always did both backups so as not to lose my contacts more than anything.
    I have other paid stuff that is in library on computer along with audiobooks and about 2700 more songs.
    my icloud backup put the playlists on iPhone but not most of the music for them as lots were ripped from my cd's.as i double them up making a copy on iPhone and a copy on itunes.
    So I have been using iPhone 5 with no problems just don't have all of itunes library on it. My computer is coming back this week how do I plug in iPhone 5 via USB (which will be seen as new phone even though it has same name) and use my existing iTunes 10.7 library which the backups in iTunes still has iOS 5.1.1 on it?
    There must be an easy way of doing it as i don't want to wipe off iphone 5 again as i don't see any purpose my library is all organized perfectly. I know my way around windows 7 pro 64 bit pretty well just don't know what itunes is going to say once it sees "joe's iPhone" again and installs the usb drivers and icon for it. what will it ask in regards to library and how do i use it with previous iOS on it?
    Thank you very much for the help as I am going to need it.
    yes i broke the cardinal rule of cross posting and apoligize  for it just amazed i couldn't find answer via google nor any apple store genius knew it either.

    Hi All,
    Any help?
    No one has any answers here amoungst all this apple knowledge?
    Thank you

  • Help on using NewObject with constructors!

    Hi,All:
    I want to create an object in a native method. The object is an instance of an inner class. The inner class has two constructors: one default and one with two arguments. There is no problem if I use NewObject with the default construtor. But if I use NewObject with the constructor taking two int arguments. The JVM crashes.
    Can anybody give me some idea what the problem is?
    Thanks!
    Tao
    Here is the native method, the inner class and error message:
    JNIEXPORT jobject JNICALL Java_Prompt_createtp(JNIEnv *env, jobject obj)
         jobject test_ttt= 0;
         jclass cls2;
         jmethodID cid;     
         jint a,b;
         jfieldID fid;
         a = 10; b = 20;
         cls2 = (*env)->FindClass(env,"LPrompt$tp;");          
         cid = (*env)->GetMethodID(env,cls2,"<init>","(LPrompt;II)V");     
    test_ttt = (*env)->NewObject(env,cls2,cid,a,b);
    // However, the following codes using default constructor works well
    //cid = (*env)->GetMethodID(env,cls2,"<init>","(LPrompt;)V");     
    //test_ttt = (*env)->NewObject(env,cls2,cid);
    (*env)->DeleteLocalRef(env,cls2);
         return test_ttt;
    // here is the inner class     
    class tp{
    int a;
    int b;
    tp(){
    a = 100;
    b = 0;
    tp(int x,int y){
    a = x; b = y;
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (53484152454432554E54494D450E43505001A3), pid=276, tid=640
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
    # An error report file with more information is saved as hs_err_pid276.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    #

    You are getting the constructor id on a signature that looks like:
    Prompt(Prompt p, int n1, int n2)I guess that your constructor signature is:
    Prompt(int n1, int n2)So it should ne:
    cid = (*env)->GetMethodID(env,cls2,"<init>","(II)V");Next time please paste your code between code tags exactly like this:
    &#91;code&#93;
    your code
    &#91;/code&#93;
    You may read the [url http://forum.java.sun.com/help.jspa?sec=formatting]Formatting tips for more information.
    Regards

  • Help downloading & using Illustrator for Windows Vista 32 bit laptop

    Hello everyone:
    I'm new to Adobe forums and would like to ask if anyone knows how to work around using Illustrator for Windows Vista 32 bit laptop. I tried twice, yet won't allow download due to "system requirements." I'm trying to start with a free trial. Thanks for the assist in advance!

    As Mike said, CS6 is the last version to support Vista.
    Download CS6 products
    Creative Suite 6
    Mylenium

  • Help with using flash player- windows vista

    Hi There, really hope someone is kind enough to help me, I
    have only a few strands of hair left on my head through pure
    frustration!!!
    I have downloaded flash player from the website following all
    the restarting prompts and changing the security settings that are
    suggested in adobes troubleshooting text but I still cant use it
    and I am not getting the animation that it says you will have if
    you have succesfully downloaded, but it is showing up on my system
    as being installed!!!
    Any help would be greatly appreciated!

    Hi, Take a look in the Safari browser plugins and make sure the Shockwave Flash plugin is Enabled.
    Using Safari go to this test site and let me know if you can see the Flash Player logo animate(spin-RedF) and what version of Flash Player is displayed.
    http://www.adobe.com/software/flash/about/
    Thanks,
    eidnolb

  • Help on using hashtables with sub structures inside

    Hi everyone,
    I'm currently working on a script that scans Active Directory for computers, and lists current users logged, and logs to an hashtable the username as key, and a count as a value.
    After that it sends an email with the list. This part is all developed and working. Now I want to go further, and in the hash table, I would like to have as the key the username, and as the value the counter and a list of the computer names where the user
    is logged on.
    I have this code for working with the hashtable:
    ForEach ($c in $computer) {
    #Get explorer.exe processes
    $proc = gwmi win32_process -computer $c -Filter "Name = 'explorer.exe'"
    #Go through collection of processes
    ForEach ($p in $proc) {
    $temp = "" | Select Computer, Domain, User
    $temp.computer = $c
    $temp.user = ($p.GetOwner()).User
    $temp.domain = ($p.GetOwner()).Domain
    $report += $temp
    If($UsersList.ContainsKey($temp.user) -eq 1){
    $UsersList[$temp.user] = $UsersList[$temp.user] + 1
    #$UsersList
    Else {
    $UsersList.add($temp.user,1)
    Can I have it the way I'd like, or have to change my approach?
    Thanks in advance
    Nuno Silva

    Thanks for the help. One more question regarding printing the arraylist.
    I use the code below to print everything. I can print successfully the key and value but get an error on the computerlist.
    ($UsersList.GetEnumerator() |
    Sort-Object Value -descending |
    % { "{0}, {1} - {3}" -f $_.key, $_.value.Count, $_.value.ComputerList })
    Error formatting a string: Index (zero based) must be greater than or equal to zero and less than the size of the argument list..
    +     % { "{0}, {1} - {3}" -f $_.key, $_.value.Count, $_.value.ComputerList[0] })
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: ({0}, {1} - {3}:String) [], RuntimeException
        + FullyQualifiedErrorId : FormatError
    Error formatting a string: Index (zero based) must be greater than or equal to zero and less than the size of the argument list..
    How can I print it out?
    Thanks in advance,
    Nuno Silva

  • Help needed with using Patterns with Actions

    New to the site and I'm wondering if anyone could give me a little assistance!
    I have jpegs of a LOT of fabric swatches that are to be inserted into a PSD file of a living room as the window blinds and this needs to be achieved via an Action.
    The way they are intended to work is:
    • the fabric swatch is opened
    • a pattern is generated from the swatch
    • a PSD file is opened
    • the relevant layer is selected and a pattern overlay is chosen which makes the swatch appear as if it is used on the blinds
    All well and good. BUT of course when I record the action and create the pattern from one swatch, whenever I run the action with a DIFFERENT swatch it still uses the swatch that was used when I recorded it!
    For example I create the action with olive_swatch.jpeg and it works a charm. But when I open teal_swatch.jpeg it still chooses olive.swatch.jpeg when I apply the pattern to the layer.
    Anyone got any ideas?
    Dave

    There is a Photoshop Scripting Forum:
    Photoshop Scripting
    Come to think of to I am no sure how well Patterns Script …

  • Can't Use Shuffle with Multiple Computers?

    So I'm helping my dad with his iPod Shuffle, and I'm having a strange problem. He apparently loaded all the music on it from a G4 tower, and now when we plug it in to his laptop, it says that it can only sync with one computer at a time, and you can either transfer purchases off it or erase and sync.
    The odder thing is that it gives the same message on the tower. There doesn't appear to be an option to turn off auto sync. Do you have any ideas?

    An iPod shuffle can't contain music from more than one iTunes library at once.
    (46629)

  • Help with using Iphone with NEW computer

    I have a new computer and want to use my iphone with it. I dont have any songs on the new one and cannot transfer them however i can eventually rebuild my song list. What i want to know is when i sync my iphone to my new computer i no that means it will put whatevers in my library on it but when it comes to settings, applications, photos, sms messages what happens with those, will it just erase everything? Im just a little confused with everything.
    Help would be much appreciated! :-D thanks

    Yep... everything will be gone because the computer will think it's a new iPhone.
    You can download the applications from the AppStore again for free, but your music will be lost. Consider using an application like ifunbox to copy the music from your iPhone to the PC before installing iTunes.

  • Looking for examples/help on using Ethernet with Keithley 2701 DMM

    All of the example code utilizing their IVI driver is based on GPIB or RS232. I specifically bought the 2701 to utilize the Ethernet port, but cannot find CVI examples on how to do this. Can anyone point me to an ethernet example using their driver and the Ethernet port? Or perhaps post a non-Keithley ehternet driver and examples on its use?

    Hi Paul,
    What you have been told is exactly what you need to do.
    Here is a document in NI web that explains about it:
    How Can I Communicate With a Keithley 2701 DMM?
    There is also an Instrument driver that NI built for these DMM:
    LabVIEW Certified Plug and Play Instrument Driver
    To find this documents you need to go to NI.com and at the top on the search box enter 2701. That will give you all the documents related to this.
    Thank you
    Ricar
    do S.
    National Instruments.

  • Can you help me use PSE9 with CS5 as an external editor?

    Hello,
    I much prefer the Elements Organizer to Bridge, and have a large catalog with tags that I don't want to give up.  95% of the time, I am perfectly happy with the PSE9 editor.  However, for the other 5% of the time, CS5 is the ticket (even if only for the better Camera RAW processing).  However, I can't seem to save the resulting edited photo in a version set with the original, and for that matter, it seems to get lost somewhere in the ether but PSE9 continues to believe that the file is being edited.
    Any help would be appreciated.
    Thanks in advance,
    Claude

    In the Organizer go to Edit >>Preferences >>Editing
    Under supplementary editing browse to the CS5 editing application and select it, then click OK.
    To edit an image select it in Organizer and click Edit >>With CS5.
    A new image will be launched automatically and when saved in CS5 will be found next to the original in a version set in the Organizer.
     

  • Need help on using Tuxedo with Oracle 8

    Hi friends,
    I wrote a simple tuxedo server with embedded sql that has only the task to insert
    a string passed by the client into a table in oracle DB.
    The Server is logged on to the database correctly during tmboot. When I start the
    client the service function will be invoked and it returns TPSUCCESS. But somehow
    my sql statements are ignored. No record is added to the table and I got no sql errors.
    Here is my service function (AUTOTRAN=Y):
    void INSERT(TPSVCINFO *msg){
    EXEC SQL insert into ABC values ('some data');
    EXEC SQL COMMIT WORK;
    if (SQLCODE != SQL_OK){
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    tpreturn(TPSUCCESS, 0, msg->data, 0L, 0);
    Thanks in advance.
    Kevin

    Thanks for your help.
    Kevin
    "Manoj SASIDHARAN" <[email protected]> wrote:
    >
    Hi Kevin,
    Oracle Docs has the following to say abt SQL Error -36:
    ORA-00036 maximum number of recursive SQL levels (string)
    exceeded
    Cause: An attempt was made to go more than the specified
    number
    of recursive SQL levels.
    Action: Remove the recursive SQL, possibly a recursive
    trigger.
    Pl check if u have some triggers on the table... and also
    determine
    the level of their nesting... That shld probably solve
    ur probs.
    Good Luck
    MS
    "Kevin" <[email protected]> wrote:
    Hi, thanks for your answer.
    But I am not sure of the error message...is the error
    code what
    I got an ORA error code or something else (e.g. why -36
    and not
    36)?
    Please have a look to my source code.
    Hope you can give me more information.
    Thanks in advance
    Kevin
    #include <stdio.h> /*operation system*/
    #include <Uunix.h> /*Tuxedo*/
    #include <errno.h> /*operation system*/
    #include <atmi.h> /*TPSVCINFO, TPFAIL, TPSUCCESS,
    etc.*/
    #include <sqlcode.h> /*SQL related*/
    #include <sqlca.h>
    void
    #if defined(__STDC__) || defined(__cplusplus)
    MSK2MANTA(TPSVCINFO *msg)
    #else
    MSK2MANTA(msg)
    TPSVCINFO *msg;
    #endif
    printf("MSK2MANTA Service started\n");
    if(msg->data == NULL){
    printf("received message is NULL!\n");
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    printf("Transaction-Status = %d\n", tpgetlev());
    EXEC SQL insert into BUF values ('sysdate', 'msk2manta
    data');
    if ((sqlca.sqlcode != 0) || (SQLCODE != SQL_OK)){
    printf("Failed to insert! SQLCODE1 = %d\n", SQLCODE);
    printf("Failed to insert! sqlca.sqlcode = %d\n",sqlca.sqlcode);
    printf("Failed to insert! sqlca.sqlerrm.sqlerrmc=
    %s\n", sqlca.sqlerrm.sqlerrmc);
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    EXEC SQL COMMIT WORK;
    if (SQLCODE != SQL_OK){
    printf("Failed to commit! SQLCODE2 = %d\n", SQLCODE);
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    tpreturn(TPSUCCESS, 0, msg->data, 0L, 0);
    Output: tpgetlev()=1, SQLCODE=-36, sqlca.sqlcode=0, sqlerrmc=""
    Scott Holland <[email protected]> wrote:
    Also... print out the remainder of the sqlca structure.
    You will have
    error text in that structure describing what the actual
    error is.
    sdh
    Kevin wrote:
    Hi Manoj,
    thanks for your answer.
    I added an extra SQLCODE check after the insert andget following
    error:
    "SQLCODE = -36"
    Do you know how to find out what the error is stangfor?
    Thanks
    Kevin
    "Manoj SASIDHARAN" <[email protected]>
    wrote:
    Hi Kevin,
    Could u pl put an extra SQLCODE (or sqlca.sqlcode)check
    after the INSERT statement
    as shown in the modified code and try...
    Currently the check verifies the sqlcode of the COMMIT
    statement and not the INSERT
    statement executed just before.
    HTH
    Regards
    /MS
    "Kevin" <[email protected]> wrote:
    Hi friends,
    I wrote a simple tuxedo server with embedded sql
    that
    has only the task
    to insert
    a string passed by the client into a table in oracleDB.
    The Server is logged on to the database correctly
    during
    tmboot. When I
    start the
    client the service function will be invoked and
    it
    returns
    TPSUCCESS. But
    somehow
    my sql statements are ignored. No record is added
    to
    the table and I got
    no sql errors.
    Here is my service function (AUTOTRAN=Y):
    void INSERT(TPSVCINFO *msg){
    EXEC SQL insert into ABC values ('some data');
    //// MS CHANGES - START
    printf("SQLCODE = %ld", sqlca.sqlcode);
    if (sqlca.sqlcode != 0) {
    ////// Handle the case
    //// MS CHANGES - STOP
    EXEC SQL COMMIT WORK;
    if (SQLCODE != SQL_OK){
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    tpreturn(TPSUCCESS, 0, msg->data, 0L, 0);
    Thanks in advance.
    Kevin

  • HELP, HELP, HELP, Problems using GridBagLayout with BorderLayout

    I have a BorderLayout for my application. I created a JPanel that has the following items added to it:
    1)Button
    2)VisualComponent
    3)ControllerComponent
    The JPanel is then added to the WEST Pane of the BorderLayout. My problem is that I can not get my components in the JPanel to display correctly. The items should be added from top to buttom in my JPanel, but they overlap and display side by side, and some don't appear at all until my entire window application is Maximized. It seems as if all my components are trying to display in one row even though I explicitly add them to different rows as follows:
    1)addUsingGBL(openFile,0,1,2,1);
    2)addUsingGBL(visualComponent,1,1,1,3);
    3)addUsingGBL(controlsComponent,4,1,2,1);
    where addUsingGBL is as follows:
    void addUsingGBL(Component component,int row, int column, int width, int height)
    gbc. gridx = row;
    gbc.gridy = column;
    gbc.gridwidth = width;
    gbc.gridheight = height;
    gbLayout.setConstraints(component, gbc);
    mediaPanel.add(component);
    mediaPanel.doLayout();
    If anyone has any suggestions, I would greatly appreciate it. Entire code is available if needed. Thanks!

    void addUsingGBL(Component component,int row, int column, int width, int height)
    gbc. gridx = row;
    gbc.gridy = column;
    gbc.gridwidth = width;
    gbc.gridheight = height;
    gbLayout.setConstraints(component, gbc);
    mediaPanel.add(component);
    mediaPanel.doLayout();
    }I see that the problem is that you are using the same gridbagconstraints reference to add all your components. In effect, all your components refer to the same gridbagconstraints , you are getting all the components on a single row. The solution to this is simple - Try this out and tell me whether that works...
    void addUsingGBL(Component component,int row, int column, int width, int height)
    //Add this line in the beginning...
    gbc = new GridBagConstraints();
    gbc. gridx = row;
    gbc.gridy = column;
    gbc.gridwidth = width;
    gbc.gridheight = height;
    gbLayout.setConstraints(component, gbc);
    mediaPanel.add(component);
    mediaPanel.doLayout();

  • HELP, HELP, HELP, Problems using GridBagLayout with a BorderLayout

    I have a BorderLayout for my application. I created a JPanel that has the following items added to it:
    1)Button
    2)VisualComponent
    3)ControllerComponent
    The JPanel is then added to the WEST Pane of the BorderLayout. My problem is that I can not get my components in the JPanel to display correctly. The items should be added from top to buttom in my JPanel, but they overlap and display side by side, and some don't appear at all until my entire window application is Maximized. It seems as if all my components are trying to display in one row even though I explicitly add them to different rows as follows:
    1)addUsingGBL(openFile,0,1,2,1);
    2)addUsingGBL(visualComponent,1,1,1,3);
    3)addUsingGBL(controlsComponent,4,1,2,1);
    where addUsingGBL is as follows:
    void addUsingGBL(Component component,int row, int column, int width, int height)
    gbc. gridx = row;
         gbc.gridy = column;
         gbc.gridwidth = width;
         gbc.gridheight = height;
         gbLayout.setConstraints(component, gbc);
         mediaPanel.add(component);
         mediaPanel.doLayout();
    If anyone has any suggestions, I would greatly appreciate it. Entire code is available if needed. Thanks!

    Here is the code, sorry, didn't see that part before.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.media.*;
    public class MediaPlayerDemo extends JFrame /*implements ControllerListener*/{
    private Player player;
    private File file;
    public static JPanel mediaPanel;
    public static JScrollPane scrollableMediaPanel;
    //public static JFrame navigation = new JFrame("Lessons");
    public static Component visualComponent;
    public static Component controlsComponent;
    private static ImageIcon background = new ImageIcon("c:/Tony.jpg");
    public static GridBagConstraints gbc;
    public static GridBagLayout gbLayout;
    //public static panel column;
    //public static Container c;
    // inner class to handler events from media player
    private class EventHandler implements ControllerListener
         public void controllerUpdate( ControllerEvent e )
              if ( e instanceof EndOfMediaEvent)
              //if ( player == null )
              //return;
              player.close();
              //if ( visualComponent != null )
              mediaPanel.remove( visualComponent );
              //if ( controlsComponent != null )
              mediaPanel.remove( controlsComponent );
              mediaPanel.doLayout();
              // doLayout();
              if ( e instanceof RealizeCompleteEvent )
                   //c = getContentPane();
                   // load Visual and Control components if they exist
                   visualComponent =
                   player.getVisualComponent();
                   //visualComponent.setSize(5,5);
                   mediaPanel.doLayout();
                   //**Sets the layout for mediaPanel as GridLayout**
                   //**GridLayouts set the rows and col, **
                   //**& adds contentslt to rt **
                   //scrollableMediaPanel= new JScrollPane(mediaPanel);
                   //scrollableMediaPanel= new JScrollPane(mediaPanel);
                   gbc.weightx = 0;
                   gbc.weighty = 0;
                   gbc.fill = GridBagConstraints.NONE;
                   if ( visualComponent != null )
                   //add comp #2
                   addUsingGBL(visualComponent,1,1,1,3);
                   controlsComponent =
                   player.getControlPanelComponent();
                   if ( controlsComponent != null )
                   //add comp #3
                   //mediaPanel.add(controlsComponent);
                   addUsingGBL(controlsComponent,1,1,1,3);
                   controlsComponent =
                   player.getControlPanelComponent();
                   /*if ( controlsComponent != null )
                   //add comp #3
                   addUsingGBL(controlsComponent,4,1,2,1);
              doLayout();//after all components are added, you must redo your layout
              //**The following is for adding the a container only **
              //**getContentPane().add(mediaPanel,BorderLayout.WEST);**
              //**getContenPane().doLayout(); **
              //**setSize(200,700);//(width, Height) **
              //**show(); **
              }//if
         }//controllerUpdate
    }//eventHandler
    public MediaPlayerDemo()
         //**Title for a container **
         //**super( "Demonstrating the Java Media Player" );**
         mediaPanel = new panelBack(background);//instantiate JPanel Object
         gbLayout = new GridBagLayout();
         mediaPanel.setAlignmentY(TOP_ALIGNMENT);
         mediaPanel.setLayout(gbLayout);
                   gbc = new GridBagConstraints();
                   gbc.fill = GridBagConstraints.NONE;
                   //gbc.anchor = GridBagConstraints.NONE;
         //instatiate JButton object
         JButton openFile = new JButton( "Open file to play" );
         //openFile.setBounds(0, 0, 25, 25);
         //openFile.setVisible(true);
         //JBUTTON ActionListener
         openFile.addActionListener
              new ActionListener()
                   public void actionPerformed( ActionEvent e )
                   openFile();
                   createPlayer();
         );//addActionListener
         //add comp #1
         addUsingGBL(openFile,0,1,2,1);
         //set scrollPane
         scrollableMediaPanel = new JScrollPane(mediaPanel,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                   JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS );
         //Set Border
         scrollableMediaPanel.setViewportBorder(new BevelBorder(BevelBorder.RAISED));
    }//Constructor
    private void createPlayer()
         if ( file == null )
              return;
         removePreviousPlayer();
         try
              // create a new player and add listener
              player = Manager.createPlayer( file.toURL() );
              player.addControllerListener( new EventHandler() );
              player.start(); // start player
         catch ( Exception e )
              JOptionPane.showMessageDialog( this,
                   "Invalid file or location", "Error loading file",
                   JOptionPane.ERROR_MESSAGE );
    //Main only useful if creating a container to hold menuPanel
    public static void main(String args[])
         MediaPlayerDemo app = new MediaPlayerDemo();
         app.getContentPane().setLayout(new BorderLayout(0,0));
              app.getContentPane().setBackground(Color.white);
              app.getContentPane().add(scrollableMediaPanel, BorderLayout.WEST);
         app.getContentPane().validate();//re-layout a container for which the layout has changed
         app.setSize(1000,700);//(width, height)
         app.show();
         app.addWindowListener
              new WindowAdapter()
                   public void windowClosing( WindowEvent e )
                   System.exit(0);
    private void openFile()
         JFileChooser fileChooser = new JFileChooser();
         fileChooser.setFileSelectionMode(
              JFileChooser.FILES_ONLY );
         int result = fileChooser.showOpenDialog( this );
         // user clicked Cancel button on dialog
         if ( result == JFileChooser.CANCEL_OPTION )
              file = null;
         else
              file = fileChooser.getSelectedFile();
    private void removePreviousPlayer()
         if ( player == null )
              return;
         player.close();
         if ( visualComponent != null )
              mediaPanel.remove( visualComponent );
         if ( controlsComponent != null )
              mediaPanel.remove( controlsComponent );
         //set background for the JPanel
         public class panelBack extends JPanel
              ImageIcon image;
              panelBack(ImageIcon image)
                   super();
                   this.image=image;
              public void paintComponent(Graphics g)
                   image.paintIcon(this,g,0, 0);
         }//panelback
    void addUsingGBL(Component component,int row, int column, int width, int height)
    gbc = new GridBagConstraints();
         gbc. gridx = row;
         gbc.gridy = column;
         gbc.gridwidth = width;
         gbc.gridheight = height;
         gbLayout.setConstraints(component, gbc);
         mediaPanel.add(component);
         mediaPanel.doLayout();
    }//MediaPlayerDemo

Maybe you are looking for