Class SaveListener

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

class SaveListener
extends java.lang.Object
implements java.awt.event.ActionListener

Reusable listener that, when invoked, will save a Window's text area into a file.


Constructor Summary
(package private) SaveListener(javax.swing.JTextArea ta, javax.swing.JFrame j)
          Initialize the listener
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Call utility routine to save the text
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveListener

SaveListener(javax.swing.JTextArea ta,
             javax.swing.JFrame j)
Initialize the listener
Parameters:
ta - The text area to be saved
j - The window in the text area
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Call utility routine to save the text
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - not used