Class MyBinaryOption

java.lang.Object
  |
  +--MyBinaryOption
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class MyBinaryOption
extends java.lang.Object
implements java.awt.event.ActionListener


Constructor Summary
MyBinaryOption()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 boolean getUserResponse(java.lang.String q, java.lang.String y, java.lang.String n)
          q: question y: yes answer n: no answer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyBinaryOption

public MyBinaryOption()
Method Detail

getUserResponse

public boolean getUserResponse(java.lang.String q,
                               java.lang.String y,
                               java.lang.String n)
q: question y: yes answer n: no answer.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener