Diablito

Páginas: 3 (542 palabras) Publicado: 5 de julio de 2011
CLASE DE CONTACTO…………
public class Contacto{
private String mensajeFalso;
private StringBuffer respuesta;
private int i;
private boolean hayTruco;
Contacto (String mFalso){i=0;
respuesta = new StringBuffer();
mensajeFalso=mFalso;
hayTruco=false;

}
public void reiniciar(){
i=0;
respuesta = newStringBuffer();
hayTruco=false;
}
public char sig(char porCual){
char r=0x0;
if(porCual=='.')
hayTruco=true;
else if (porCual==',')hayTruco=false;
else if(hayTruco && i<mensajeFalso.length()){
r=mensajeFalso.charAt(i);
respuesta.append(porCual);
i++;
}
elser = porCual;
return(r);

}
public String responder(){
if (respuesta.length()==0)
respuesta.append("No te quiero responder");return(respuesta.toString());
}
}

ESTO VA EN LA OUJA………….
*/
public class Fouja extends javax.swing.JFrame {
Contacto c;

/** Creates new form Fouja */
public Fouja() {initComponents();
c = new Contacto("Por favor responde a lansiguiente pregunta");
this.rootPane.setDefaultButton(b1);
b1.setActionCommand("SOLICITANDO");
}

/** This method iscalled 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")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

iFondo = newjavax.swing.JLayeredPane();
e1 = new javax.swing.JLabel();
tf1 = new javax.swing.JTextField();
b1 = new javax.swing.JButton();
fondo = new javax.swing.JLabel();...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • diablitos sucios
  • Diablitos underwood
  • baile de los diablitos
  • Diablito
  • El hombre que comió diablitos
  • Diablito En La Botella
  • el diablito de los numeros
  • BORUCAS DIABLITOS

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS