This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes running a video instance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "running a video instance" Watch "running a video instance" New topic

running a video instance

Dura Hurtado
Ranch Hand

Joined: Feb 16, 2011
Posts: 120
Hi I am trying to retrieve a web cam signal from a swing app, then from the method:

public class Video extends javax.swing.JFrame {
JmfVideo b = new JmfVideo();
/** Creates new form Video */
public Video() {
this.setTitle("WebCam - by Mouse");
//formulario al centro de la pantalla
//se da un tamaño al jFrame
this.setSize(320, 240);
//se coloca un layout tipo CAJA
getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.LINE_AXIS));
//se añade el componente de Video
this.add( b.componente());
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {


javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
.addGap(0, 400, Short.MAX_VALUE)
.addGap(0, 300, Short.MAX_VALUE)

}// </editor-fold>

I am not able to develop a method to run it for example:

public void verVideo(){

Video video=new Video();

¿what way could I continue calling initComponents()?


¿Any clue?

I agree. Here's the link:
subject: running a video instance
It's not a secret anymore!