title: Adding a GUI to a Video-playing program (in Processing using Java)
body: <p>I have to make a program that can both play and alter a video file. I've worked out how to play the video file, but I can't work out how to extend the window of the program to build a GUI while keeping the video playing with the same dimensions. Here is my code thus far if this is helpful:</p>
  
  <pre><code>import processing.video.*;
  Movie myMovie;
  
  void setup() {
    myMovie = new Movie(this, "hollywood_test.mp4");
    surface.setResizable(true);
    surface.setSize(640,360);
    background(0);
    myMovie.loop();
    tint(255,200,200);
    myMovie.play();
  }
  
  void draw() {
    image(myMovie,0,0,width,height);
  }
  
  void movieEvent(Movie m) {
    m.read();
  }
  </code></pre>
  
  <p>If anybody has any idea of how I can format the code so that I can play the video with the same dimensions, while adding space for a GUI, it would be incredibly helpful. Thank you very much!</p>