Ejemplode Jpicusb Java

Embed Size (px)

Citation preview

  • 8/13/2019 Ejemplode Jpicusb Java

    1/17

    Puedes usar Pic's que se comuniquen mediante Usb. Puedes aplicar una interfaz

    desarrollada en c++, aplicando la JNI(Java Native Inferface) y algunas fuentes de

    microchip(mchpusb.dll) las cuales proporcionan funciones necesarias para poder utilizas las

    API'S de microchip en este caso tu proyecto en java.

    importjPicUsb.*;importjava.awt.event.ActionEvent;

    importjava.awt.event.ActionListener;importjavax.swing.Timer;importjavax.sound.sampled.AudioFormat.*;

    publicclassPrincipalextendsjavax.swing.JFrame{

    publicbytecmd_FW = 99;publicbytecmd_LED = 88;

    //EFECTOSprivateTimerefecto;privateintefecto_state;privateintefecto_actual;privatestaticbyte[][]efectos = {{(byte)0xAA, (byte)

    0x55},{(byte)0x00, (byte)0x18, (byte)0x24, (byte)0x42,

    (byte)0x81}};

    /** Creates new form Principal */publicPrincipal(){

    initComponents();

    this.setTitle("jPicUsb Led");try{

    iface.load();setTitle("jPicUSB");

    }catch(Exceptione){

    setTitle(e.getMessage());System.out.println(e.getMessage());

    }//configuramos el vid_pid del dispositivo asi podemos

    usar las funciones "rapidas" de la interfaziface.set_vidpid("vid_04d8&pid_000b");

    //configuramos la instancia del dispositivo asipodemos usar las funciones "rapidas" de la interfaz

    iface.set_instance(0);//efectoefecto = newTimer(300, newActionListener(){

    publicvoidactionPerformed(ActionEvente){

    efecto_next_frame();

    http://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Principalhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFrame.htmlhttp://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Timerhttp://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Principalhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.htmlhttp://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Timerhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Timerhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.htmlhttp://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Principalhttp://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Timerhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFrame.htmlhttp://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Principal
  • 8/13/2019 Ejemplode Jpicusb Java

    2/17

    }});jSlider4.setValue(300);

    }

    /** This method is called from within the constructor to* initialize the form.* WARNING: Do NOT modify this code. The content of this

    method is* always regenerated by the Form Editor.*/@SuppressWarnings("unchecked")

    //

    privatevoidinitComponents(){

    fw_but = newjavax.swing.JButton();

    jPanel1 = newjavax.swing.JPanel();jCheckBox8 = newjavax.swing.JCheckBox();jCheckBox7 = newjavax.swing.JCheckBox();jCheckBox6 = newjavax.swing.JCheckBox();jCheckBox5 = newjavax.swing.JCheckBox();jCheckBox1 = newjavax.swing.JCheckBox();jCheckBox2 = newjavax.swing.JCheckBox();jCheckBox3 = newjavax.swing.JCheckBox();jCheckBox4 = newjavax.swing.JCheckBox();texto_fw = newjavax.swing.JTextField();jPanel2 = newjavax.swing.JPanel();

    jSlider1 = newjavax.swing.JSlider();jSlider2 = newjavax.swing.JSlider();jLabel1 = newjavax.swing.JLabel();jLabel2 = newjavax.swing.JLabel();jLabel3 = newjavax.swing.JLabel();jSlider3 = newjavax.swing.JSlider();jButton1 = newjavax.swing.JButton();jLabel4 = newjavax.swing.JLabel();jButton2 = newjavax.swing.JButton();jButton3 = newjavax.swing.JButton();jLabel5 = newjavax.swing.JLabel();

    jSlider4 = newjavax.swing.JSlider();

    setDefaultCloseOperation(javax.swing.WindowConstants.

    EXIT_ON_CLOSE);

    fw_but.setText("Obtener Version de FW");fw_but.addActionListener(new

    java.awt.event.ActionListener(){

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPanel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTextField.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPanel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/WindowConstants.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/WindowConstants.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPanel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTextField.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPanel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
  • 8/13/2019 Ejemplode Jpicusb Java

    3/17

    publicvoidactionPerformed(java.awt.event.ActionEventevt){

    fw_butActionPerformed(evt);}

    });

    jPanel1.setBorder(javax.swing.BorderFactory.createTit

    ledBorder("Control Individual"));

    jCheckBox8.setText("LED8");jCheckBox8.addActionListener(new

    java.awt.event.ActionListener(){publicvoid

    actionPerformed(java.awt.event.ActionEventevt){

    jCheckBox8ActionPerformed(evt);}

    });

    jCheckBox7.setText("LED7");jCheckBox7.addActionListener(new

    java.awt.event.ActionListener(){publicvoid

    actionPerformed(java.awt.event.ActionEventevt){

    jCheckBox7ActionPerformed(evt);}

    });

    jCheckBox6.setText("LED6");

    jCheckBox6.addActionListener(newjava.awt.event.ActionListener(){

    publicvoidactionPerformed(java.awt.event.ActionEventevt){

    jCheckBox6ActionPerformed(evt);}

    });

    jCheckBox5.setText("LED5");jCheckBox5.addActionListener(new

    java.awt.event.ActionListener(){

    publicvoidactionPerformed(java.awt.event.ActionEventevt){

    jCheckBox5ActionPerformed(evt);}

    });

    jCheckBox1.setText("LED1");jCheckBox1.addActionListener(new

    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/BorderFactory.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/BorderFactory.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.html
  • 8/13/2019 Ejemplode Jpicusb Java

    4/17

    java.awt.event.ActionListener(){publicvoid

    actionPerformed(java.awt.event.ActionEventevt){

    jCheckBox1ActionPerformed(evt);}

    });

    jCheckBox2.setText("LED2");jCheckBox2.addActionListener(new

    java.awt.event.ActionListener(){publicvoid

    actionPerformed(java.awt.event.ActionEventevt){

    jCheckBox2ActionPerformed(evt);}

    });

    jCheckBox3.setText("LED3");jCheckBox3.addActionListener(new

    java.awt.event.ActionListener(){publicvoid

    actionPerformed(java.awt.event.ActionEventevt){

    jCheckBox3ActionPerformed(evt);}

    });

    jCheckBox4.setText("LED4");jCheckBox4.addActionListener(new

    java.awt.event.ActionListener(){

    publicvoidactionPerformed(java.awt.event.ActionEventevt){

    jCheckBox4ActionPerformed(evt);}

    });

    javax.swing.GroupLayoutjPanel1Layout = new

    javax.swing.GroupLayout(jPanel1);jPanel1.setLayout(jPanel1Layout);jPanel1Layout.setHorizontalGroup(

    jPanel1Layout.createParallelGroup(javax.swing.Gro

    upLayout.Alignment.LEADING).addGroup(jPanel1Layout.createSequentialGroup()

    .addContainerGap()

    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)

    .addComponent(jCheckBox1)

    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.html
  • 8/13/2019 Ejemplode Jpicusb Java

    5/17

    .addComponent(jCheckBox2).addComponent(jCheckBox3).addComponent(jCheckBox4))

    .addComponent(jCheckBox7)

    .addComponent(jCheckBox5)

    .addComponent(jCheckBox6)

    .addComponent(jCheckBox8)).addGap(53, 53, 53))

    );jPanel1Layout.setVerticalGroup(

    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

    .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jCheckBox1).addPreferredGap(javax.swing.LayoutStyle.Comp

    onentPlacement.RELATED).addComponent(jCheckBox2)

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addComponent(jCheckBox3)

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addComponent(jCheckBox4)

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addComponent(jCheckBox5)

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addComponent(jCheckBox6)

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addComponent(jCheckBox7)

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addComponent(jCheckBox8)

    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

    );

    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Control Slider"));

    jSlider1.setMaximum(8);jSlider1.setValue(0);jSlider1.addChangeListener(new

    javax.swing.event.ChangeListener(){publicvoid

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/BorderFactory.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/BorderFactory.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.html
  • 8/13/2019 Ejemplode Jpicusb Java

    6/17

    stateChanged(javax.swing.event.ChangeEventevt){

    jSlider1StateChanged(evt);}

    });

    jSlider2.setMaximum(8);jSlider2.setValue(0);jSlider2.addChangeListener(new

    javax.swing.event.ChangeListener(){publicvoid

    stateChanged(javax.swing.event.ChangeEventevt){

    jSlider2StateChanged(evt);}

    });

    jLabel1.setText("Slider Punto");

    jLabel2.setText("Slider Relleno");

    jLabel3.setText("Por los Lados");

    jSlider3.setMaximum(4);jSlider3.setValue(0);jSlider3.addChangeListener(new

    javax.swing.event.ChangeListener(){publicvoid

    stateChanged(javax.swing.event.ChangeEventevt){

    jSlider3StateChanged(evt);

    }});

    jButton1.setText("Efecto 1");jButton1.addActionListener(new

    java.awt.event.ActionListener(){publicvoid

    actionPerformed(java.awt.event.ActionEventevt){

    jButton1ActionPerformed(evt);}

    });

    jLabel4.setText("Efectos");

    jButton2.setText("Detener Efectos");jButton2.addActionListener(new

    java.awt.event.ActionListener(){publicvoid

    actionPerformed(java.awt.event.ActionEventevt){

    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.html
  • 8/13/2019 Ejemplode Jpicusb Java

    7/17

    jButton2ActionPerformed(evt);}

    });

    jButton3.setText("Efecto 2");jButton3.addActionListener(new

    java.awt.event.ActionListener(){publicvoid

    actionPerformed(java.awt.event.ActionEventevt){

    jButton3ActionPerformed(evt);}

    });

    jLabel5.setText("Velocidad de Efecto");

    jSlider4.setMaximum(800);jSlider4.setMinimum(20);jSlider4.setInverted(true);jSlider4.addChangeListener(new

    javax.swing.event.ChangeListener(){publicvoid

    stateChanged(javax.swing.event.ChangeEventevt){

    jSlider4StateChanged(evt);}

    });

    javax.swing.GroupLayoutjPanel2Layout = new

    javax.swing.GroupLayout(jPanel2);

    jPanel2.setLayout(jPanel2Layout);jPanel2Layout.setHorizontalGroup(

    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

    .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout.createParallelGroup(j

    avax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel3).addComponent(jLabel2).addComponent(jLabel1)

    .addComponent(jLabel4)

    .addComponent(jLabel5)).addGap(34, 34, 34).addGroup(jPanel2Layout.createParallelGroup(j

    avax.swing.GroupLayout.Alignment.LEADING).addGroup(jPanel2Layout.createSequentialG

    roup().addComponent(jButton2)

    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeListener.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.html
  • 8/13/2019 Ejemplode Jpicusb Java

    8/17

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addComponent(jButton1)

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addComponent(jButton3)).addComponent(jSlider3,

    javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)

    .addComponent(jSlider2,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)

    .addComponent(jSlider1,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,

    javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jSlider4,

    javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE))

    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

    );jPanel2Layout.setVerticalGroup(

    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

    .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout.createParallelGroup(j

    avax.swing.GroupLayout.Alignment.TRAILING).addComponent(jLabel1).addComponent(jSlider1,

    javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE))

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addGroup(jPanel2Layout.createParallelGroup(j

    avax.swing.GroupLayout.Alignment.TRAILING).addComponent(jSlider2,

    javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)

    .addComponent(jLabel2)).addPreferredGap(javax.swing.LayoutStyle.Comp

    onentPlacement.RELATED)

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.html
  • 8/13/2019 Ejemplode Jpicusb Java

    9/17

    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)

    .addComponent(jLabel3)

    .addComponent(jSlider3,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE))

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)

    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)

    .addComponent(jButton1)

    .addComponent(jButton2)

    .addComponent(jButton3)).addComponent(jLabel4))

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)

    .addComponent(jLabel5)

    .addComponent(jSlider4,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE))

    .addContainerGap(15, Short.MAX_VALUE))

    );

    javax.swing.GroupLayoutlayout = new

    javax.swing.GroupLayout(getContentPane());getContentPane().setLayout(layout);layout.setHorizontalGroup(

    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

    .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.sw

    ing.GroupLayout.Alignment.TRAILING)

    .addGroup(layout.createSequentialGroup().addComponent(fw_but).addPreferredGap(javax.swing.LayoutSt

    yle.ComponentPlacement.RELATED).addComponent(texto_fw,

    javax.swing.GroupLayout.DEFAULT_SIZE, 282, Short.MAX_VALUE))

    .addComponent(jPanel2,javax.swing.GroupLayout.DEFAULT_SIZE,

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.html
  • 8/13/2019 Ejemplode Jpicusb Java

    10/17

    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addComponent(jPanel1,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

    .addContainerGap()));layout.setVerticalGroup(

    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

    .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.sw

    ing.GroupLayout.Alignment.LEADING, false)

    .addComponent(jPanel1,javax.swing.GroupLayout.PREFERRED_SIZE,

    javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)

    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()

    .addComponent(jPanel2,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)

    .addComponent(fw_but)

    .addComponent(texto_fw,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE))))

    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

    );

    pack();}//

    privatestaticStringgetBitString(intx){StringBufferbuf = newStringBuffer();for (inti = 1;i >>(32- i)&0x00000001);}returnbuf.toString();

    }

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/StringBuffer.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/StringBuffer.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/StringBuffer.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/StringBuffer.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Short.html
  • 8/13/2019 Ejemplode Jpicusb Java

    11/17

    publicvoidsend_command(bytecommand){byte[]out = {command};

    iface.QWrite(out, 1, 1000);}

    publicvoidsend_command(bytecommand, byteparam1){byte[]out = {command, param1};

    iface.QWrite(out, 2, 1000);}

    publicbyte[]read_response(intmaxbytes){returniface.QRead(maxbytes, 500);

    }

    privatevoidencender_leds(byteLED){

    send_command(cmd_LED, LED);}

    privatevoidencender_led(){byteLED = 0x00;

    if (jCheckBox1.isSelected()){LED |= 0x01;

    }if (jCheckBox2.isSelected()){

    LED |= 0x02;}if (jCheckBox3.isSelected()){

    LED |= 0x04;

    }if (jCheckBox4.isSelected()){

    LED |= 0x08;}if (jCheckBox5.isSelected()){

    LED |= 0x10;}if (jCheckBox6.isSelected()){

    LED |= 0x20;}if (jCheckBox7.isSelected()){

    LED |= 0x40;}if (jCheckBox8.isSelected()){

    LED |= 0x80;}send_command(cmd_LED, LED);

    //System.out.println(getBitString((int) LED));}

  • 8/13/2019 Ejemplode Jpicusb Java

    12/17

    privatevoidfw_butActionPerformed(java.awt.event.ActionEventevt)

    {try{

    send_command(cmd_FW);Stringresponse = newString(read_response(64),

    "utf-8");//verificamos que se hallan recibido datosif (response.length()>0){

    texto_fw.setText("Version de Firmware:"+response);

    }else {texto_fw.setText("Dispositivo no

    conectado.");}

    }catch(Exceptionex){System.out.println("ERROR:"+ ex.getMessage());

    }}

    privatevoidjCheckBox1ActionPerformed(java.awt.event.ActionEventevt)

    {encender_led();

    }

    privatevoidjCheckBox2ActionPerformed(java.awt.event.ActionEventevt)

    {encender_led(); // TODO add your handling code

    here:}

    privatevoidjCheckBox3ActionPerformed(java.awt.event.ActionEventevt)

    {encender_led(); // TODO add your handling code

    here:}

    privatevoidjCheckBox4ActionPerformed(java.awt.event.ActionEventevt)

    {encender_led(); // TODO add your handling code

    here:}

    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.html
  • 8/13/2019 Ejemplode Jpicusb Java

    13/17

    privatevoidjCheckBox8ActionPerformed(java.awt.event.ActionEventevt)

    {encender_led(); // TODO add your handling code

    here:}

    privatevoidjCheckBox7ActionPerformed(java.awt.event.ActionEventevt)

    {encender_led(); // TODO add your handling code

    here:}

    privatevoidjCheckBox6ActionPerformed(java.awt.event.ActionEventevt)

    {encender_led(); // TODO add your handling code

    here:}

    privatevoidjCheckBox5ActionPerformed(java.awt.event.ActionEventevt)

    {encender_led(); // TODO add your handling code

    here:}

    privatevoidjSlider1StateChanged(javax.swing.event.ChangeEventevt)

    {switch (jSlider1.getValue()){

    case 0:encender_leds((byte)0x00);break;

    case 1:encender_leds((byte)0x01);break;

    case 2:

    encender_leds((byte)0x02);break;

    case 3:encender_leds((byte)0x04);break;

    case 4:encender_leds((byte)0x08);break;

    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.html
  • 8/13/2019 Ejemplode Jpicusb Java

    14/17

    case 5:encender_leds((byte)0x10);break;

    case 6:encender_leds((byte)0x20);break;

    case 7:encender_leds((byte)0x40);break;

    case 8:encender_leds((byte)0x80);break;

    }}

    privatevoidjSlider2StateChanged(javax.swing.event.ChangeEventevt)

    {switch (jSlider2.getValue()){

    case 0:encender_leds((byte)0x00);break;

    case 1:encender_leds((byte)0x01);break;

    case 2:encender_leds((byte)0x03);break;

    case 3:encender_leds((byte)0x07);break;

    case 4:encender_leds((byte)0x0F);break;

    case 5:encender_leds((byte)0x1F);break;

    case 6:encender_leds((byte)0x3F);

    break;case 7:

    encender_leds((byte)0x7F);break;

    case 8:encender_leds((byte)0xFF);break;

    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.html
  • 8/13/2019 Ejemplode Jpicusb Java

    15/17

    }}

    privatevoidjSlider3StateChanged(javax.swing.event.ChangeEventevt)

    {switch (jSlider3.getValue()){

    case 0:encender_leds((byte)0x00);break;

    case 1:encender_leds((byte)0x18);break;

    case 2:encender_leds((byte)0x3C);break;

    case 3:

    encender_leds((byte)0x7E);break;

    case 4:encender_leds((byte)0xFF);break;

    }}privatevoidefecto_next_frame(){

    encender_leds(efectos[efecto_actual][efecto_state++]);

    if (efecto_state >= efectos[efecto_actual].length){

    efecto_state = 0;}

    }privatevoid

    jButton1ActionPerformed(java.awt.event.ActionEventevt)

    {efecto.stop();efecto_state = 0;efecto_actual = 0;efecto.start();

    }

    privatevoidjButton2ActionPerformed(java.awt.event.ActionEventevt)

    {efecto.stop();

    }

    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.html
  • 8/13/2019 Ejemplode Jpicusb Java

    16/17

    privatevoidjButton3ActionPerformed(java.awt.event.ActionEventevt)

    {efecto.stop();efecto_state = 0;efecto_actual = 1;efecto.start();

    }

    privatevoidjSlider4StateChanged(javax.swing.event.ChangeEventevt)

    {efecto.setDelay(jSlider4.getValue());

    }

    /*** @param args the command line arguments

    */publicstaticvoidmain(Stringargs[]){

    java.awt.EventQueue.invokeLater(newRunnable(){

    publicvoidrun(){newPrincipal().setVisible(true);

    }});

    }

    // Variables declaration - do not

    modifyprivatejavax.swing.JButtonfw_but;privatejavax.swing.JButtonjButton1;privatejavax.swing.JButtonjButton2;privatejavax.swing.JButtonjButton3;privatejavax.swing.JCheckBoxjCheckBox1;privatejavax.swing.JCheckBoxjCheckBox2;privatejavax.swing.JCheckBoxjCheckBox3;privatejavax.swing.JCheckBoxjCheckBox4;privatejavax.swing.JCheckBoxjCheckBox5;privatejavax.swing.JCheckBoxjCheckBox6;

    privatejavax.swing.JCheckBoxjCheckBox7;privatejavax.swing.JCheckBoxjCheckBox8;privatejavax.swing.JLabeljLabel1;privatejavax.swing.JLabeljLabel2;privatejavax.swing.JLabeljLabel3;privatejavax.swing.JLabeljLabel4;privatejavax.swing.JLabeljLabel5;privatejavax.swing.JPaneljPanel1;

    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/EventQueue.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runnable.htmlhttp://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Principalhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPanel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPanel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.htmlhttp://www.google.com/search?sitesearch=java.sun.com&q=allinurl%3Aj2se%2F1+5+0%2Fdocs%2Fapi+Principalhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runnable.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/EventQueue.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/event/ChangeEvent.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionEvent.html
  • 8/13/2019 Ejemplode Jpicusb Java

    17/17

    privatejavax.swing.JPaneljPanel2;privatejavax.swing.JSliderjSlider1;privatejavax.swing.JSliderjSlider2;privatejavax.swing.JSliderjSlider3;privatejavax.swing.JSliderjSlider4;privatejavax.swing.JTextFieldtexto_fw;

    // End of variables declaration}

    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPanel.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTextField.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTextField.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.htmlhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPanel.html