Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void actionPerformed(ActionEvent e)
- {
- JButton boton = (JButton) e.getSource();
- if (boton.getText().equals(unaPregunta.getOpcion1().toString()))
- {
- contenidoTexto.setText(mensaje1); // Esto hay que cambiarlo para devolver un valor al Manejador Principal
- }
- else
- {
- contenidoTexto.setText(mensaje2); // Esto también
- }
- framePregu.add(contenidoTexto);
- framePregu.setVisible(true);
- framePregu.setSize(300,300);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement