]> git.sesse.net Git - vlc/blobdiff - bindings/java/org/videolan/jvlc/JVLCCanvas.java
Java bindings updated to latest jvlc version.
[vlc] / bindings / java / org / videolan / jvlc / JVLCCanvas.java
index 70fff6c8f998f49105c67482357e79f8a4ff5433..f7f376eb64439a632b7c41b6b150a1f2d1b934a7 100644 (file)
@@ -1,26 +1,30 @@
 /*****************************************************************************
  * JVLCCanvas.java: AWT Canvas containing VLC Video Output
  *****************************************************************************
+ * 
  * Copyright (C) 1998-2006 the VideoLAN team
+ * 
+ * Author: Filippo Carone <filippo@carone.org>
  *
- * $Id$
- *
- * Authors: Filippo Carone <filippo@carone.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * Created on 25-nov-2005
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * $Id$
+ * 
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
+ * 
+ */
 
 package org.videolan.jvlc;
 
@@ -31,12 +35,13 @@ public class JVLCCanvas extends Canvas {
 
     public native void paint(Graphics g);
 
-    private final JVLC jvlc = new JVLC();
+    private final JVLC jvlc;
     
     /**
      * Default constructor. The canvas is set a dimension of 200x200
      */
     public JVLCCanvas() {
+        jvlc = new JVLC();
         setSize(200, 200);
     }
     
@@ -45,9 +50,13 @@ public class JVLCCanvas extends Canvas {
      * @param height The initial canvas height
      */
     public JVLCCanvas(int width, int height) {
+        jvlc = new JVLC();
         setSize(width, height);
     }
 
+    public JVLCCanvas(JVLC jvlc) {
+        this.jvlc = jvlc;
+    }
     
     public JVLC getJVLC() {
         return jvlc;