domingo, 29 de mayo de 2011

INGRESAR LA MARCA DEL PRODUCTO (SANSUNG,LG) Y SE MOSTRARA EL PRECIO

public class prueba extends javax.swing.JFrame {

    /** Creates new form prueba */
    public prueba() {
        initComponents();
    }
 private void jcbotecladoActionPerformed(java.awt.event.ActionEvent evt) {                                           
        // TODO add your handling code here:
        int entrada =(this.jcboteclado.getSelectedIndex());
        switch (entrada){
            case 0: jtxtp1.setText("600");break;
            case 1: jtxtp1.setText("1300");break;
        }
    }                                          

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new prueba().setVisible(true);
            }
        });
    }

No hay comentarios:

Publicar un comentario