Changeset 132

Show
Ignore:
Timestamp:
01/27/08 19:14:16 (1 year ago)
Author:
Stuart Thiel
Message:

-Partial fix for #83
--Setting up the applet with LiveConnect? to talk back to JavaScript?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • MediAnnotate/trunk/.classpath

    r3 r132  
    33        <classpathentry kind="src" path="src"/> 
    44        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 
     5        <classpathentry kind="lib" path="netscape.jar"/> 
    56        <classpathentry kind="output" path="bin"/> 
    67</classpath> 
  • MediAnnotate/trunk/src/org/mediannotate/app/MediAnnotater.java

    r124 r132  
    11package org.mediannotate.app; 
     2import netscape.javascript.*; 
    23 
    34import java.awt.GridLayout; 
     
    8485                getContentPane().setLayout(new GridLayout(1,1)); 
    8586                getContentPane().add(myPlayerPanel, 0); 
    86                 String url = getParameter("url"); 
    87                 myController.loadMovie(url); 
    88                 String mediannotate = null; 
     87                         
    8988                try { 
    90                         mediannotate = URLDecoder.decode(getParameter("mediannotate"), "UTF-8"); 
     89                        //Let the browser know it can now pass stuff in. 
     90                        JSObject.getWindow(this).eval("appletFinishedLoading();"); 
    9191                } catch (Exception e) { 
    92                         // TODO Auto-generated catch block 
     92                        System.out.println(e.getMessage()); 
    9393                        e.printStackTrace(); 
    9494                } 
    95                  
    96                 if(mediannotate != null) MediAnnotater.setTime(mediannotate); 
     95 
    9796                addKeyListener(myPlayerPanel); 
    9897    }